Changeset 6881 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 31, 2006, 2:27:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/hover.cc
r6880 r6881 276 276 accel -= Vector(0, this->acceleration, 0); 277 277 } 278 278 accel.debug(); 279 279 Vector tmp = this->getAbsDir().apply(accel * 500.0); 280 280 //tmp.y = accel.y * 500.0 ; 281 281 velocity += tmp * dt; 282 282 283 accel -= velocity * .0005; 283 accel -= velocity * .05; 284 accel.debug(); 284 285 285 286 // this is the air friction (necessary for a smooth control)
Note: See TracChangeset
for help on using the changeset viewer.