- Timestamp:
- Dec 10, 2008, 1:38:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/StaticEntity.h
r2304 r2374 54 54 using WorldEntity::setDirection; 55 55 56 inline void setPosition(const Vector3& position) 57 { this->node_->setPosition(position); } 58 inline void translate(const Vector3& distance, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 59 { this->node_->translate(distance, relativeTo); } 60 inline void setOrientation(const Quaternion& orientation) 61 { this->node_->setOrientation(orientation); } 62 inline void rotate(const Quaternion& rotation, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 63 { this->node_->rotate(rotation, relativeTo); } 64 inline void yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 65 { this->node_->yaw(angle, relativeTo); } 66 inline void pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 67 { this->node_->pitch(angle, relativeTo); } 68 inline void roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL) 69 { this->node_->roll(angle, relativeTo); } 70 inline void lookAt(const Vector3& target, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z) 71 { this->node_->lookAt(target, relativeTo, localDirectionVector); } 72 inline void setDirection(const Vector3& direction, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z) 73 { this->node_->setDirection(direction, relativeTo, localDirectionVector); } 56 void setPosition(const Vector3& position); 57 void translate(const Vector3& distance, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 58 void setOrientation(const Quaternion& orientation); 59 void rotate(const Quaternion& rotation, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 60 void yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 61 void pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 62 void roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 63 void lookAt(const Vector3& target, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z); 64 void setDirection(const Vector3& direction, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z); 74 65 75 66 private: 67 bool isCollisionTypeLegal(CollisionType type) const; 76 68 77 bool isCollisionTypeLegal(CollisionType type) const; 69 inline void positionChanged() 70 { this->setPosition(this->getPosition()); } 71 inline void orientationChanged() 72 { this->setOrientation(this->getOrientation()); } 78 73 79 74 // Bullet btMotionState related
Note: See TracChangeset
for help on using the changeset viewer.