3D Collision physics problem
Started by Protricity, Oct 06 2001 10:44 PM
3 replies to this topic
#1 Members - Reputation: 122
Posted 06 October 2001 - 10:44 PM
This problem deals with the direction and magnitude an object will take on after hitting and bouncing of the ground or some irregular terrain object.
Problem:
An object lands on a piece of angled terrain and bounces,
which direction will it bounce in? (in X,Y,Z velocity vector coordinates)
example, if the terrain was flat, y velocity would reverse its direction, x and z velocitys will stay the same.
How can you calculate the x y and z final velocities if all you know is the X slope (in y = Mx) and Z slope (in y = Mz) ?
Disregard all other environmental dependencies, ex. gravity, friction, object dimentions.
Any solutions, ideas, comments, or suggestions will be greatly apreciated, being as I am lozing sleep over this algorithm
Sponsor:
#2 Staff Emeritus - Reputation: 1668
Posted 06 October 2001 - 10:56 PM
Use the normal of the terrain and your direction vector to obtain the new direction vector. The new vector will lie on the on the other side of the plane that contains the normal and is perpendicular to the plane of the normal and (old) direction.
ie, direction vector d, terrain normal n
plane P contains d and n
plane Q contains n and is perpendicular to P (with n as the axis of intersection)
new direction vector d'' lies on the other side of Q.
ie, direction vector d, terrain normal n
plane P contains d and n
plane Q contains n and is perpendicular to P (with n as the axis of intersection)
new direction vector d'' lies on the other side of Q.






