Changeset 6426 in orxonox.OLD for trunk/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Jan 7, 2006, 11:17:51 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r6424 r6426 123 123 PRINTF(4)("SPACESHIP INIT\n"); 124 124 125 125 EventHandler::getInstance()->grabEvents(true); 126 126 127 127 bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false; … … 315 315 316 316 //readjust 317 // if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0))); 317 318 /* 319 In the game "Yager" the spaceship gets readjusted when the player moves the mouse. 320 I (bknecht) go and check it out how they do it, we could probably use this also in Orxonox. 321 */ 322 //if (xMouse != 0 && yMouse != 0) 323 324 //if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0))); 318 325 //else if (this->getAbsDirZ().y < -0.1) this->shiftDir(Quaternion(-time*0.3, Vector(1,0,0))); 319 326 … … 505 512 //if (this->getWeaponManager()->hasFreeSlot(3)) 506 513 { 507 turret = new AimingTurret(); 514 turret = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET)); 515 if (turret != NULL) 508 516 this->getWeaponManager()->addWeapon(turret, 3); 509 517
Note: See TracChangeset
for help on using the changeset viewer.