Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


3D Collision physics problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Protricity   Members   -  Reputation: 122

Like
Likes
Like

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 Oluseyi   Staff Emeritus   -  Reputation: 1678

Like
Likes
Like

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.

#3 Protricity   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 October 2001 - 09:29 AM

hmm, this may sound trivial, but since I cant figure out how to do the normal vector correctly, can someone plz post an equation to use or a link to documentation on vectors?

thx


#4 clickbyclick   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 October 2001 - 09:35 AM

given three points on the plan form two vectors from the edges.
then find the cross product of the two vectors this is the surface normal.

If it''s wierd then it''s the norm for me!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS