Changeset 643 for code/branches/FICN/src/orxonox/objects/WorldEntity.h
- Timestamp:
- Dec 19, 2007, 2:41:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/WorldEntity.h
r637 r643 23 23 virtual void loadParams(TiXmlElement* xmlElem); 24 24 bool create(); 25 25 26 26 inline Ogre::SceneNode* getNode() 27 27 { return this->node_; } … … 53 53 { this->node_->roll(angle, relativeTo); } 54 54 55 inline const Ogre::Quaternion& getOrientation() 56 { return this->node_->getOrientation(); } 57 inline void setOrientation(const Ogre::Quaternion& quat) 58 { this->node_->setOrientation(quat); } 55 59 inline void rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 56 60 { this->node_->rotate(axis, angle, relativeTo); } … … 59 63 inline void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 60 64 { this->node_->setDirection(vec, relativeTo, localDirectionVector); } 61 inline void setOrientation(const Ogre::Quaternion quat)62 { this->node_->setOrientation(quat); }63 65 inline void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 64 66 { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); } … … 122 124 inline const Radian& getMomentum() const 123 125 { return this->momentum_; } 124 inline const Ogre::Quaternion& getOrientation()125 { return this->node_->getOrientation(); }126 126 127 127 inline void setStatic(bool bStatic)
Note: See TracChangeset
for help on using the changeset viewer.