Tinman  1.0
motionstate.h
Go to the documentation of this file.
1 //Taked from: http://www.bulletphysics.org/mediawiki-1.5.8/index.php/MotionStates
2 #ifndef MOTIONSTATE_H
3 #define MOTIONSTATE_H
4 #include <OgreSceneNode.h>
5 #include <btBulletDynamicsCommon.h>
6 
7 
8 class MotionState: public btMotionState {
9  Ogre::SceneNode* node_;
10  btTransform mInitialPosition_;
11 
12 public:
13  MotionState(const btTransform &initialPosition, Ogre::SceneNode *node);
14  void setNode(Ogre::SceneNode *node);
15  virtual void getWorldTransform(btTransform &worldTrans) const;
16  virtual void setWorldTransform(const btTransform &worldTrans);
17 };
18 
19 #endif
virtual void getWorldTransform(btTransform &worldTrans) const
Definition: motionstate.cpp:14
Ogre::SceneNode * node_
Definition: motionstate.h:9
btTransform mInitialPosition_
Definition: motionstate.h:10
MotionState(const btTransform &initialPosition, Ogre::SceneNode *node)
Definition: motionstate.cpp:5
Definition: motionstate.h:8
virtual void setWorldTransform(const btTransform &worldTrans)
Definition: motionstate.cpp:18
void setNode(Ogre::SceneNode *node)
Definition: motionstate.cpp:10