Changeset 6169 in orxonox.OLD for branches/christmas_branche/src/world_entities/space_ships
- Timestamp:
- Dec 20, 2005, 12:22:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/world_entities/space_ships/space_ship.cc
r6162 r6169 267 267 velocity += ((this->getAbsDirX())*travelSpeed-velocity)*airViscosity; 268 268 velocity = (velocity.getNormalized())*travelSpeed; 269 269 270 270 //orient the spaceship in direction of the mouse 271 271 rotQuat = Quaternion::quatSlerp( this->getAbsDir(),mouseDir,fabsf(time)*3); 272 if (this->getAbsDir().distance(rotQuat) > 0.001) 272 if (this->getAbsDir().distance(rotQuat) > 0.001) 273 273 this->setAbsDir( rotQuat); 274 274 //this->setAbsDirSoft(mouseDir,5); 275 275 276 276 // this is the air friction (necessary for a smooth control) 277 277 if(velocity.len() != 0) velocity -= velocity*0.01; … … 312 312 //this->shiftCoor(this->getAbsDirX()); 313 313 accel += (this->getAbsDirX())*2; 314 314 315 315 /* Heli-Steuerung 316 316 accel += (this->getAbsDirX()*2;
Note: See TracChangeset
for help on using the changeset viewer.