Changeset 1314 for code/branches/hud3/src/orxonox/objects
- Timestamp:
- May 17, 2008, 3:05:27 PM (17 years ago)
- Location:
- code/branches/hud3/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/objects/SpaceShip.cc
r1310 r1314 270 270 camName_=camera; 271 271 // 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);275 272 } 276 273 … … 298 295 cam_->setTargetNode(this->getNode()); 299 296 // 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); 300 300 if(network::Client::getSingleton()!=0 && network::Client::getSingleton()->getShipID()==objectID){ 301 301 this->setBacksync(true); … … 448 448 } 449 449 450 float SpaceShip::getMaxSpeed() { return maxSpeed_; } 451 450 452 void SpaceShip::tick(float dt) 451 453 { -
code/branches/hud3/src/orxonox/objects/SpaceShip.h
r1310 r1314 64 64 65 65 void getFocus(); 66 67 68 69 66 static SpaceShip* instance_s; 67 static Vector3 getSPosition(); 68 static Quaternion getSOrientation(); 69 static std::string whereAmI(); 70 70 static void setMaxSpeedTest(float value) 71 71 { SpaceShip::instance_s->setMaxSpeed(value); } … … 77 77 bool mouseScrolled (const MouseState& state) { return true; } 78 78 79 float getMaxSpeed(); 79 80 80 81 private:
Note: See TracChangeset
for help on using the changeset viewer.