Changeset 533 for code/branches/FICN/src/orxonox
- Timestamp:
- Dec 15, 2007, 7:32:23 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/InputManager.h
r512 r533 2 2 #define InputManager_H 3 3 4 #ifdef WIN32 5 #include <OIS/OISMouse.h> 6 #include <OIS/OISKeyboard.h> 7 #include <OIS/OISJoyStick.h> 8 #include <OIS/OISInputManager.h> 9 #else 4 10 #include <OISMouse.h> 5 11 #include <OISKeyboard.h> 6 12 #include <OISJoyStick.h> 7 13 #include <OISInputManager.h> 14 #endif 8 15 9 16 #include <OgreRenderWindow.h> -
code/branches/FICN/src/orxonox/objects/WorldEntity.h
r497 r533 18 18 void tick(float dt); 19 19 20 private: 21 Ogre::SceneNode* node_; 22 static unsigned int worldEntityCounter_s; 23 24 bool bStatic_; 25 Vector3 velocity_; 26 Vector3 acceleration_; 27 Vector3 rotationAxis_; 28 Radian rotationRate_; 29 Radian momentum_; 30 31 public: 20 32 inline Ogre::SceneNode* getNode() 21 33 { return this->node_; } … … 50 62 inline void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 51 63 { this->node_->setDirection(vec, relativeTo, localDirectionVector); } 64 inline void setOrientation(const Ogre::Quaternion quat) 65 { this->node_->setOrientation(quat); } 52 66 inline void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 53 67 { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); } … … 96 110 97 111 112 inline const Ogre::Quaternion& getOrientation() 113 { return this->node_->getOrientation(); } 114 115 98 116 static Ogre::SceneManager* sceneManager_s; 99 117 static int num_s; 100 118 101 private:102 Ogre::SceneNode* node_;103 static unsigned int worldEntityCounter_s;104 105 bool bStatic_;106 Vector3 velocity_;107 Vector3 acceleration_;108 Vector3 rotationAxis_;109 Radian rotationRate_;110 Radian momentum_;111 119 }; 112 120 }
Note: See TracChangeset
for help on using the changeset viewer.