btDefaultMotionState

gc36
Posts: 7
Joined: Thu Jun 05, 2008 10:23 am

btDefaultMotionState

Post by gc36 »

Hello

I am confused about how the btRigidBody function setCenterOfMassTransform works with btDefaultMotionState.

Say I create my rigidbody with a particular orientation and position contained in the matrix called rbTransform. Do I have to create a btDefaultMotionState with this rbTransform as well as call setCenterOfMassTransform on the rigidBody with rbTransform?

But then if I want to change it to a new orientation and position (for example when reseting the scene) - I have to call setCenterOfMassTransform but dont seem to need to update the btDefaultMotionState with the new transform? (at least this is how the demo's are implemented). Can somebody please explain?

Thanks