1 #ifndef BT_DEFAULT_MOTION_STATE_H
2 #define BT_DEFAULT_MOTION_STATE_H
17 : m_graphicsWorldTrans(startTrans),
18 m_centerOfMassOffset(centerOfMassOffset),
19 m_startWorldTrans(startTrans),
28 centerOfMassWorldTrans = m_centerOfMassOffset.
inverse() * m_graphicsWorldTrans ;
35 m_graphicsWorldTrans = centerOfMassWorldTrans * m_centerOfMassOffset ;
42 #endif //BT_DEFAULT_MOTION_STATE_H
virtual void getWorldTransform(btTransform ¢erOfMassWorldTrans) const
synchronizes world transform from user to physics
virtual void setWorldTransform(const btTransform ¢erOfMassWorldTrans)
synchronizes world transform from physics to user Bullet only calls the update of worldtransform for ...
btTransform m_graphicsWorldTrans
btTransform m_startWorldTrans
The btDefaultMotionState provides a common implementation to synchronize world transforms with offset...
btDefaultMotionState(const btTransform &startTrans=btTransform::getIdentity(), const btTransform ¢erOfMassOffset=btTransform::getIdentity())
#define ATTRIBUTE_ALIGNED16(a)
The btMotionState interface class allows the dynamics world to synchronize and interpolate the update...
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btTransform m_centerOfMassOffset