should I do this:
m_chassisBody->getCenterOfMassTransform();
or
m_chassisBody->getMotionState()->getWorldTransform(trans);
In my specific case I am overriding update from btActionInterface and I want to know where my vehicle is so I can apply suspension forces. But I would like to know what one to use in what situation if there is some sort of rule of thumb.
Thanks
->getMotionState()->getWorldTransform() OR getCenterOfMassTr
-
- Posts: 17
- Joined: Tue Aug 18, 2009 2:48 pm
-
- Posts: 229
- Joined: Sun Sep 30, 2007 7:58 am
Re: ->getMotionState()->getWorldTransform() OR getCenterOfMassTr
Hi,
one rule of thumb is that you should always use the motion state. I gives you an interpolated transform.
one rule of thumb is that you should always use the motion state. I gives you an interpolated transform.