PDA

View Full Version : Surface interaction/physics


Karnageddon
12-02-2009, 01:38 AM
I am trying to develop a script that can check when object1 intersects object2 and moves object1 to the surface of object2 through an animation. The purpose of this is to be a part of a much bigger script that automatically animates the movement of legs based on the position of a helper object that controls the position of the rig. I want the feet to be able to follow the surface without going through it, either in realtime or overwriting the preanimated keyframes.

What I needed to know was if there is a certain formula used to prevent object intersection, is there a name for this method or is there anything specific I could research in order to understand this better?

Thanks for the help.

Dmaxer
12-02-2009, 03:55 PM
look up intersectRay that should get you started :)

Karnageddon
12-02-2009, 07:25 PM
Thanks for the suggestion, it looks like a great place to start.

CGTalk Moderation
12-02-2009, 07:25 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.