- 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/LinearEntity.h
r2192 r2292 38 38 namespace orxonox 39 39 { 40 class _OrxonoxExport LinearEntity : public MovableEntity, public network::ClientConnectionListener 40 class _OrxonoxExport LinearEntity : public MovableEntity, public network::ClientConnectionListener, public Tickable 41 41 { 42 42 public: … … 48 48 void registerVariables(); 49 49 50 using WorldEntity::setPosition; 51 using WorldEntity::translate; 52 using WorldEntity::setOrientation; 53 using WorldEntity::rotate; 54 using WorldEntity::yaw; 55 using WorldEntity::pitch; 56 using WorldEntity::roll; 57 using WorldEntity::lookAt; 58 using WorldEntity::setDirection; 59 60 void setPosition(const Vector3& position); 61 void translate(const Vector3& distance, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 62 void setOrientation(const Quaternion& orientation); 63 void rotate(const Quaternion& rotation, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 64 void yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 65 void pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 66 void roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL); 67 void lookAt(const Vector3& target, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z); 68 void setDirection(const Vector3& direction, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z); 69 70 inline void setVelocity(const Vector3& velocity) 71 { this->velocity_ = velocity; } 50 inline void setVelocity(const Vector3& velocity); 72 51 inline void setVelocity(float x, float y, float z) 73 52 { this->velocity_.x = x; this->velocity_.y = y; this->velocity_.z = z; } … … 111 90 void overwriteOrientation(); 112 91 92 void positionChanged(); 93 void orientationChanged(); 94 inline void internalSetVelocity(const Vector3& velocity) 95 { this->velocity_ = velocity; } 96 113 97 Vector3 velocity_; 114 98 Vector3 acceleration_;
Note: See TracChangeset
for help on using the changeset viewer.