- Timestamp:
- Oct 21, 2008, 4:56:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/worldentities/WorldEntity.h
r1940 r1989 54 54 { return this->node_; } 55 55 56 static const Vector3 FRONT; 57 static const Vector3 BACK; 58 static const Vector3 LEFT; 59 static const Vector3 RIGHT; 60 static const Vector3 DOWN; 61 static const Vector3 UP; 62 56 63 virtual void setPosition(const Vector3& position) = 0; 57 64 inline void setPosition(float x, float y, float z) … … 71 78 inline void setOrientation(const Vector3& axis, const Radian& angle) 72 79 { this->setOrientation(Quaternion(angle, axis)); } 80 inline void setOrientation(const Vector3& axis, const Degree& angle) 81 { this->setOrientation(Quaternion(angle, axis)); } 73 82 inline const Quaternion& getOrientation() const 74 83 { return this->node_->getOrientation(); } … … 77 86 78 87 virtual void rotate(const Quaternion& rotation, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) = 0; 88 inline void rotate(const Vector3& axis, const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 89 { this->rotate(Quaternion(angle, axis), relativeTo); } 79 90 inline void rotate(const Vector3& axis, const Radian& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 80 91 { this->rotate(Quaternion(angle, axis), relativeTo); } 81 92 82 virtual void yaw(const Radian& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) = 0; 83 virtual void pitch(const Radian& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) = 0; 84 virtual void roll(const Radian& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) = 0; 93 virtual void yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) = 0; 94 inline void yaw(const Radian& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 95 { this->yaw(Degree(angle), relativeTo); } 96 virtual void pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) = 0; 97 inline void pitch(const Radian& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 98 { this->pitch(Degree(angle), relativeTo); } 99 virtual void roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) = 0; 100 inline void roll(const Radian& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 101 { this->roll(Degree(angle), relativeTo); } 85 102 86 103 virtual void lookAt(const Vector3& target, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z) = 0; … … 131 148 inline void setDirection_xmlport(const Vector3& direction) 132 149 { this->setDirection(direction); } 133 inline void yaw_xmlport(const Radian& angle)150 inline void yaw_xmlport(const Degree& angle) 134 151 { this->yaw(angle); } 135 inline void pitch_xmlport(const Radian& angle)152 inline void pitch_xmlport(const Degree& angle) 136 153 { this->pitch(angle); } 137 inline void roll_xmlport(const Radian& angle)154 inline void roll_xmlport(const Degree& angle) 138 155 { this->roll(angle); } 139 156
Note: See TracChangeset
for help on using the changeset viewer.