Changeset 869 for code/branches/core/src/orxonox/objects/WorldEntity.h
- Timestamp:
- Mar 9, 2008, 4:04:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/objects/WorldEntity.h
r856 r869 39 39 inline void setPosition(const Vector3& pos) 40 40 { this->node_->setPosition(pos); } 41 // inline void setPosition(Real x, Real y, Real z) 42 // { this->node_->setPosition(x, y, z); } 41 inline void setPositionLoader1(const Vector3& pos) 42 { this->node_->setPosition(pos); } 43 inline void setPositionLoader2(Real x, Real y, Real z) 44 { this->node_->setPosition(x, y, z); } 45 inline void setPosition(Real x, Real y, Real z) 46 { this->node_->setPosition(x, y, z); } 43 47 inline const Vector3& getPosition() const 44 48 { return this->node_->getPosition(); } … … 59 63 inline void roll(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 60 64 { this->node_->roll(angle, relativeTo); } 65 void setYawPitchRoll(const Degree& yaw, const Degree& pitch, const Degree& roll); 61 66 62 67 inline void setYaw(const Degree &angle) … … 73 78 inline void rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 74 79 { this->node_->rotate(axis, angle, relativeTo); } 80 inline void setDirectionLoader(Real x, Real y, Real z) 81 { this->setDirection(x, y, z); } 75 82 inline void setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 76 83 { this->node_->setDirection(x, y, z, relativeTo, localDirectionVector); } … … 120 127 { return this->acceleration_; } 121 128 129 inline void setRotationAxisLoader(const Vector3& axis) 130 { this->rotationAxis_ = axis; } 122 131 inline void setRotationAxis(const Vector3& axis) 123 132 { this->rotationAxis_ = axis; } 124 //inline void setRotationAxis(Real x, Real y, Real z)125 //{ this->rotationAxis_.x = x; this->rotationAxis_.y = y; this->rotationAxis_.z = z; }133 inline void setRotationAxis(Real x, Real y, Real z) 134 { this->rotationAxis_.x = x; this->rotationAxis_.y = y; this->rotationAxis_.z = z; } 126 135 inline const Vector3& getRotationAxis() const 127 136 { return this->rotationAxis_; } … … 130 139 // { this->rotationRate_ = angle; } 131 140 inline void setRotationRate(const Degree& angle) 132 { this->rotationRate_ = angle; }141 { this->rotationRate_ = angle; this->setStatic(angle == Degree(0)); } 133 142 inline const Radian& getRotationRate() const 134 143 { return this->rotationRate_; }
Note: See TracChangeset
for help on using the changeset viewer.