Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 2:41:01 AM (16 years ago)
Author:
landauf
Message:

added a simple firing mode to SpaceShip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/WorldEntity.h

    r637 r643  
    2323      virtual void loadParams(TiXmlElement* xmlElem);
    2424      bool create();
    25      
     25
    2626      inline Ogre::SceneNode* getNode()
    2727          { return this->node_; }
     
    5353          { this->node_->roll(angle, relativeTo); }
    5454
     55      inline const Ogre::Quaternion& getOrientation()
     56        { return this->node_->getOrientation(); }
     57      inline void setOrientation(const Ogre::Quaternion& quat)
     58        { this->node_->setOrientation(quat); }
    5559      inline void rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)
    5660        { this->node_->rotate(axis, angle, relativeTo); }
     
    5963      inline void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)
    6064        { this->node_->setDirection(vec, relativeTo, localDirectionVector); }
    61       inline void setOrientation(const Ogre::Quaternion quat)
    62         { this->node_->setOrientation(quat); }
    6365      inline void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)
    6466        { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); }
     
    122124      inline const Radian& getMomentum() const
    123125          { return this->momentum_; }
    124       inline const Ogre::Quaternion& getOrientation()
    125           { return this->node_->getOrientation(); }
    126126
    127127      inline void setStatic(bool bStatic)
Note: See TracChangeset for help on using the changeset viewer.