Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2005, 5:31:17 PM (18 years ago)
Author:
snellen
Message:

guiding_misslie.cc updated, targeting_turret added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc

    r6234 r6255  
    286286
    287287  //orient the spaceship in direction of the mouse
    288    rotQuat = Quaternion::quatSlerp( this->getAbsDir(), mouseDir, fabsf(time)*3.0);
     288   rotQuat = Quaternion::quatSlerp( this->getAbsDir(), mouseDir, 1);
    289289   if (this->getAbsDir().distance(rotQuat) > 0.00000000000001)
    290290    this->setAbsDir( rotQuat);
     
    466466    //if (this->getWeaponManager()->hasFreeSlot(3))
    467467    {
    468       turret = new AimingTurret();
     468      turret = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET));
     469      if (turret != NULL)
    469470      this->getWeaponManager()->addWeapon(turret, 3);
    470471
Note: See TracChangeset for help on using the changeset viewer.