- Timestamp:
- Jan 31, 2006, 2:38:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/hover.cc
r6881 r6882 276 276 accel -= Vector(0, this->acceleration, 0); 277 277 } 278 accel.debug(); 279 Vector tmp = this->getAbsDir().apply(accel * 500.0); 278 Vector tmp = this->getAbsDir().apply(accel * 200.0); 280 279 //tmp.y = accel.y * 500.0 ; 281 280 velocity += tmp * dt; 282 281 283 accel -= velocity * .05; 284 accel.debug(); 282 accel -= this->getAbsDir().inverse().apply(velocity * .005); 285 283 286 284 // this is the air friction (necessary for a smooth control) 287 this->velocity *= 0.9 5;285 this->velocity *= 0.99; 288 286 this->shiftCoor (velocity * dt); 289 287 this->rotation = 0.0f;
Note: See TracChangeset
for help on using the changeset viewer.