Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6882 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Jan 31, 2006, 2:38:19 AM (19 years ago)
Author:
bensch
Message:

trunk: smooth

File:
1 edited

Legend:

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

    r6881 r6882  
    276276    accel -= Vector(0, this->acceleration, 0);
    277277  }
    278   accel.debug();
    279   Vector tmp = this->getAbsDir().apply(accel * 500.0);
     278  Vector tmp = this->getAbsDir().apply(accel * 200.0);
    280279  //tmp.y = accel.y * 500.0 ;
    281280  velocity += tmp * dt;
    282281
    283   accel -= velocity * .05;
    284   accel.debug();
     282  accel -= this->getAbsDir().inverse().apply(velocity * .005);
    285283
    286284  // this is the air friction (necessary for a smooth control)
    287   this->velocity *= 0.95;
     285  this->velocity *= 0.99;
    288286  this->shiftCoor (velocity * dt);
    289287  this->rotation = 0.0f;
Note: See TracChangeset for help on using the changeset viewer.