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