@MuntyScruntFundle wrote:
Hi folks.
I have the simple code for working out the exit vectors of moving, colliding objects, but I have a slightly different situation which I haven't been able to find the answer for.
I have an object moving around inside a large circle, (900,900 px) when it hit's (bounces) off the inside of the circle I want a realistic exit vector. The simple equations either expect two objects to have velocities, or don't account for glancing blows.
So if the object hits the inside of the circle head on (90 degrees) it will bounce straight back, but a glancing blow would send the object off at a shallow angle to hit the circle again.
The bit I can't seem to work out is creating a second vector of the circle circumference at the point of the impact.
Has anyone done this, or have the math for it? Or a link with an example?
Thanks.
Posts: 2
Participants: 2