hello everyone,
I am trying to make a good collision response, but i have some problems.
A lot works, thanks to the site http://www.euclidean...hreed/index.htm, but now am i stuck, because the movement is in the wrong direction.
that site uses a vector 'n', which is supposed to be the direction vector of the impulse (i think), but how do I calculate that vector 'n' ?
Collision response
that seems to work when the objects hit in the center, but when they hit farther away from the center, they get extremely high speeds.
i have calculated 'n' as n= PositionA - PositionB
and the vectors 'ra' and 'rb' by subtracting the position of the object from the coordinates of the collision point, i don't know if that has anything to do with it.
i have calculated 'n' as n= PositionA - PositionB
and the vectors 'ra' and 'rb' by subtracting the position of the object from the coordinates of the collision point, i don't know if that has anything to do with it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement