Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2008, 3:05:27 PM (17 years ago)
Author:
FelixSchulthess
Message:

added speedometer.

Location:
code/branches/hud3/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/objects/SpaceShip.cc

    r1310 r1314  
    270270      camName_=camera;
    271271      // change camera attributes here, if you want to ;)
    272       Quaternion q1 = Quaternion(Radian(Degree(90)),Vector3(0,-1,0));
    273       Quaternion q2 = Quaternion(Radian(Degree(90)),Vector3(0,0,-1));
    274       //camNode_->setOrientation(q1*q2);
    275272    }
    276273
     
    298295      cam_->setTargetNode(this->getNode());
    299296//        cam->setPosition(Vector3(0,-350,0));
     297      Quaternion q1 = Quaternion(Radian(Degree(90)),Vector3(0,-1,0));
     298      Quaternion q2 = Quaternion(Radian(Degree(90)),Vector3(0,0,-1));
     299      //camNode_->setOrientation(q1*q2);
    300300      if(network::Client::getSingleton()!=0 && network::Client::getSingleton()->getShipID()==objectID){
    301301        this->setBacksync(true);
     
    448448    }
    449449
     450    float SpaceShip::getMaxSpeed() { return maxSpeed_; }
     451
    450452    void SpaceShip::tick(float dt)
    451453    {
  • code/branches/hud3/src/orxonox/objects/SpaceShip.h

    r1310 r1314  
    6464
    6565            void getFocus();
    66             static SpaceShip* instance_s;
    67             static Vector3 getSPosition();
    68             static Quaternion getSOrientation();
    69             static std::string whereAmI();
     66            static SpaceShip* instance_s;
     67            static Vector3 getSPosition();
     68            static Quaternion getSOrientation();
     69            static std::string whereAmI();
    7070            static void setMaxSpeedTest(float value)
    7171                { SpaceShip::instance_s->setMaxSpeed(value); }
     
    7777            bool mouseScrolled      (const MouseState& state) { return true; }
    7878
     79            float getMaxSpeed();
    7980
    8081        private:
Note: See TracChangeset for help on using the changeset viewer.