Change Transformation Parent Node

Dec 13, 2011 at 9:17 AM


I wanna ask a question..  I am trying to rotate my object Node which has children, i do that by changing the Rotation of that Node.. It works fine, the children also rotate perfectly, but if I rotate it when the physics simulation is running, all objects position are back to the beginning,,

Is there any way to rotate my parent Node without resetting the position of other object?


Thanks before

Dec 13, 2011 at 6:36 PM

That's by design. In general, you should not change the parent TransformNode of a GeometryNode which is already added to the physics engine. You should change only when you want to reset their initial position (which is why I reset them if you change). If you simply want to change their transform in physics engine, use NewtonPhysics.SetTransform to do so. Also, if you wanna have any proper physical responses between other physical objects, you should apply force and torque to move them.