| Bullet Collision Detection & Physics Library
    | 
 
 
 
Go to the documentation of this file.    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;
 
   40 #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_centerOfMassOffset
btDefaultMotionState(const btTransform &startTrans=btTransform::getIdentity(), const btTransform ¢erOfMassOffset=btTransform::getIdentity())
The btDefaultMotionState provides a common implementation to synchronize world transforms with offset...
The btMotionState interface class allows the dynamics world to synchronize and interpolate the update...
btTransform m_startWorldTrans
#define BT_DECLARE_ALIGNED_ALLOCATOR()
#define ATTRIBUTE_ALIGNED16(a)