Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/LinearMath/btMotionState.h
| Show All 14 Lines | |||||
| #ifndef BT_MOTIONSTATE_H | #ifndef BT_MOTIONSTATE_H | ||||
| #define BT_MOTIONSTATE_H | #define BT_MOTIONSTATE_H | ||||
| #include "btTransform.h" | #include "btTransform.h" | ||||
| ///The btMotionState interface class allows the dynamics world to synchronize and interpolate the updated world transforms with graphics | ///The btMotionState interface class allows the dynamics world to synchronize and interpolate the updated world transforms with graphics | ||||
| ///For optimizations, potentially only moving objects get synchronized (using setWorldPosition/setWorldOrientation) | ///For optimizations, potentially only moving objects get synchronized (using setWorldPosition/setWorldOrientation) | ||||
| class btMotionState | class btMotionState | ||||
| { | { | ||||
| public: | public: | ||||
| virtual ~btMotionState() | virtual ~btMotionState() | ||||
| { | { | ||||
| } | } | ||||
| virtual void getWorldTransform(btTransform& worldTrans ) const =0; | virtual void getWorldTransform(btTransform& worldTrans) const = 0; | ||||
| //Bullet only calls the update of worldtransform for active objects | //Bullet only calls the update of worldtransform for active objects | ||||
| virtual void setWorldTransform(const btTransform& worldTrans)=0; | virtual void setWorldTransform(const btTransform& worldTrans) = 0; | ||||
| }; | }; | ||||
| #endif //BT_MOTIONSTATE_H | #endif //BT_MOTIONSTATE_H | ||||