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.
|