Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2005, 12:22:17 AM (19 years ago)
Author:
patrick
Message:

christmas: model loading progress

File:
1 edited

Legend:

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

    r6162 r6169  
    267267  velocity += ((this->getAbsDirX())*travelSpeed-velocity)*airViscosity;
    268268  velocity = (velocity.getNormalized())*travelSpeed;
    269  
     269
    270270  //orient the spaceship in direction of the mouse
    271271   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)
    273273    this->setAbsDir( rotQuat);
    274274   //this->setAbsDirSoft(mouseDir,5);
    275    
     275
    276276  // this is the air friction (necessary for a smooth control)
    277277  if(velocity.len() != 0) velocity -= velocity*0.01;
     
    312312     //this->shiftCoor(this->getAbsDirX());
    313313      accel += (this->getAbsDirX())*2;
    314      
     314
    315315      /* Heli-Steuerung
    316316         accel += (this->getAbsDirX()*2;
Note: See TracChangeset for help on using the changeset viewer.