Changeset 6255 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/space_ships
- Timestamp:
- Dec 21, 2005, 5:31:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r6234 r6255 286 286 287 287 //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); 289 289 if (this->getAbsDir().distance(rotQuat) > 0.00000000000001) 290 290 this->setAbsDir( rotQuat); … … 466 466 //if (this->getWeaponManager()->hasFreeSlot(3)) 467 467 { 468 turret = new AimingTurret(); 468 turret = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET)); 469 if (turret != NULL) 469 470 this->getWeaponManager()->addWeapon(turret, 3); 470 471
Note: See TracChangeset
for help on using the changeset viewer.