- Timestamp:
- Nov 28, 2008, 1:25:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/PositionableEntity.h
r2192 r2292 43 43 void registerVariables(); 44 44 45 using WorldEntity::setPosition;46 using WorldEntity::translate;47 using WorldEntity::setOrientation;48 using WorldEntity::rotate;49 using WorldEntity::yaw;50 using WorldEntity::pitch;51 using WorldEntity::roll;52 using WorldEntity::lookAt;53 using WorldEntity::setDirection;54 55 inline void setPosition(const Vector3& position)56 { this->node_->setPosition(position); }57 inline void translate(const Vector3& distance, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)58 { this->node_->translate(distance, relativeTo); }59 inline void setOrientation(const Quaternion& orientation)60 { this->node_->setOrientation(orientation); }61 inline void rotate(const Quaternion& rotation, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)62 { this->node_->rotate(rotation, relativeTo); }63 inline void yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)64 { this->node_->yaw(angle, relativeTo); }65 inline void pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)66 { this->node_->pitch(angle, relativeTo); }67 inline void roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)68 { this->node_->roll(angle, relativeTo); }69 inline void lookAt(const Vector3& target, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z)70 { this->node_->lookAt(target, relativeTo, localDirectionVector); }71 inline void setDirection(const Vector3& direction, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z)72 { this->node_->setDirection(direction, relativeTo, localDirectionVector); }73 74 45 private: 75 46 //void attachPhysicalObject(WorldEntity* object);
Note: See TracChangeset
for help on using the changeset viewer.