View Single Post
  #5  
Old 05-29-2008, 09:46 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Ok, it sounds like you want to have a dynamic object whose position is controlled by a tracker? If so, then you will need to use a physics spring. You tell the spring the desired position/rotation of the object and the physics engine will apply the necessary forces to get the object to that position, but it will stop if it collides with other objects in the environment. Search the docs for addSpring, it is documented under the Forces section of the Physics engine reference.

We use this technique for scripts where a person uses their hand to interactive with a physics environment.
Reply With Quote