Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2007, 7:32:23 PM (17 years ago)
Author:
rgrieder
Message:
  • some minor changes in order to make the project compile with VC08 (doesn't yet)
File:
1 edited

Legend:

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

    r497 r533  
    1818            void tick(float dt);
    1919
     20        private:
     21            Ogre::SceneNode* node_;
     22            static unsigned int worldEntityCounter_s;
     23
     24            bool bStatic_;
     25            Vector3 velocity_;
     26            Vector3 acceleration_;
     27            Vector3 rotationAxis_;
     28            Radian rotationRate_;
     29            Radian momentum_;
     30
     31        public:
    2032            inline Ogre::SceneNode* getNode()
    2133                { return this->node_; }
     
    5062            inline void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)
    5163                { this->node_->setDirection(vec, relativeTo, localDirectionVector); }
     64            inline void setOrientation(const Ogre::Quaternion quat)
     65                { this->node_->setOrientation(quat); }
    5266            inline void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)
    5367                { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); }
     
    96110
    97111
     112            inline const Ogre::Quaternion& getOrientation()
     113                { return this->node_->getOrientation(); }
     114
     115
    98116            static Ogre::SceneManager* sceneManager_s;
    99117            static int num_s;
    100118
    101         private:
    102             Ogre::SceneNode* node_;
    103             static unsigned int worldEntityCounter_s;
    104 
    105             bool bStatic_;
    106             Vector3 velocity_;
    107             Vector3 acceleration_;
    108             Vector3 rotationAxis_;
    109             Radian rotationRate_;
    110             Radian momentum_;
    111119    };
    112120}
Note: See TracChangeset for help on using the changeset viewer.