Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2006, 11:17:51 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the spaceshipcontrol branche back to the trunk

merged with command
svn merge https://svn.orxonox.net/orxonox/branches/spaceshipcontrol . -r6224:HEAD
small conflict in space_ship.cc fixed in favor of the control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6424 r6426  
    123123  PRINTF(4)("SPACESHIP INIT\n");
    124124
    125     EventHandler::getInstance()->grabEvents(true);
     125  EventHandler::getInstance()->grabEvents(true);
    126126
    127127  bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false;
     
    315315
    316316  //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)));
    318325  //else if (this->getAbsDirZ().y < -0.1) this->shiftDir(Quaternion(-time*0.3, Vector(1,0,0)));
    319326
     
    505512    //if (this->getWeaponManager()->hasFreeSlot(3))
    506513    {
    507       turret = new AimingTurret();
     514      turret = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET));
     515      if (turret != NULL)
    508516      this->getWeaponManager()->addWeapon(turret, 3);
    509517
Note: See TracChangeset for help on using the changeset viewer.