Castle Battle  1.0
motionstatemanager.h
Go to the documentation of this file.
1 #ifndef MOTION_MANAGER_H
2 #include <irrlicht.h>
3 #include <btBulletCollisionCommon.h>
4 #include <btBulletDynamicsCommon.h>
5 #include "bullethelper.h"
6 using namespace irr;
8 class MotionStateManager : public btMotionState {
9 
10  private:
12  scene::ISceneNode* node;
14  btTransform initialPosition;
15 
16  public:
21  MotionStateManager(btTransform &pos, scene::ISceneNode* node);
22  virtual ~MotionStateManager(){}
24  virtual void getWorldTransform(btTransform &wordTrans) const;
28  virtual void setWorldTransform(const btTransform &worldTrans);
29 };
30 #endif
btTransform initialPosition
Initial state.
Definition: motionstatemanager.h:14
MotionStateManager handles physics motion of objects.
Definition: motionstatemanager.h:8
scene::ISceneNode * node
Graphic node to transform.
Definition: motionstatemanager.h:12
virtual ~MotionStateManager()
Definition: motionstatemanager.h:22