Changeset 576 for code/branches/FICN/src/orxonox/objects/WorldEntity.h
- Timestamp:
- Dec 17, 2007, 3:39:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/WorldEntity.h
r567 r576 7 7 #include "OgreSceneManager.h" 8 8 #include "OgreSceneNode.h" 9 #include "Mesh.h" 9 10 #include "network/Synchronisable.h" 10 11 … … 45 46 { this->node_->roll(angle, relativeTo); } 46 47 48 inline void rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 49 { this->node_->rotate(axis, angle, relativeTo); } 50 inline void setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 51 { this->node_->setDirection(x, y, z, relativeTo, localDirectionVector); } 52 inline void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 53 { this->node_->setDirection(vec, relativeTo, localDirectionVector); } 54 inline void setOrientation(const Ogre::Quaternion quat) 55 { this->node_->setOrientation(quat); } 56 inline void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 57 { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); } 47 58 48 inline void rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 49 { this->node_->rotate(axis, angle, relativeTo); } 50 inline void setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 51 { this->node_->setDirection(x, y, z, relativeTo, localDirectionVector); } 52 inline void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 53 { this->node_->setDirection(vec, relativeTo, localDirectionVector); } 54 inline void setOrientation(const Ogre::Quaternion quat) 55 { this->node_->setOrientation(quat); } 56 inline void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 57 { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); } 59 inline void setScale(const Vector3 &scale) 60 { this->node_->setScale(scale); } 61 inline void setScale(Real x, Real y, Real z) 62 { this->node_->setScale(x, y, z); } 63 inline void setScale(Real scale) 64 { this->node_->setScale(scale, scale, scale); } 65 inline const Vector3& getScale(void) const 66 { return this->node_->getScale(); } 67 inline void scale(const Vector3 &scale) 68 { this->node_->scale(scale); } 69 inline void scale(Real x, Real y, Real z) 70 { this->node_->scale(x, y, z); } 71 inline void scale(Real scale) 72 { this->node_->scale(scale, scale, scale); } 58 73 59 74 inline void attachObject(Ogre::MovableObject *obj) 60 { this->node_->attachObject(obj); } 75 { std::cout << "gux_1" << this->node_ << "\n"; this->node_->attachObject(obj); std::cout << "gux_2\n"; } 76 inline void attachObject(Mesh &mesh) 77 { std::cout << "gux_3" << this->node_ << "\n"; this->node_->attachObject((Ogre::MovableObject*)(mesh.getEntity())); std::cout << "gux_4\n"; } 61 78 inline void detachObject(Ogre::MovableObject *obj) 62 79 { this->node_->detachObject(obj); } 63 80 inline void detachAllObjects() 64 81 { this->node_->detachAllObjects(); } 65 82 66 83 inline void setVelocity(const Vector3& velocity) … … 100 117 inline const Ogre::Quaternion& getOrientation() 101 118 { return this->node_->getOrientation(); } 102 119 103 120 protected: 104 121 void registerAllVariables(); 105 122 106 123 private: 107 124 Ogre::SceneNode* node_;
Note: See TracChangeset
for help on using the changeset viewer.