Changeset 5980 in orxonox.OLD for branches/height_map/src/world_entities
- Timestamp:
- Dec 7, 2005, 9:52:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map/src/world_entities/player.cc
r5940 r5980 277 277 /* FIXME: calculating the direction and orthDirection every timeSlice is redundant! save it somewhere */ 278 278 /* calculate the direction in which the craft is heading */ 279 Vector direction ( 1.0, 0.0, 0.0);279 Vector direction (20.0, 0.0, 0.0); 280 280 //direction = this->absDirection.apply (direction); 281 281 Vector orthDirection (0.0, 0.0, 1.0); … … 289 289 if( this->bLeft ) 290 290 { 291 accel -=(orthDirection) ;291 accel -=(orthDirection)*20; 292 292 rot +=Vector(1,0,0); 293 293 rotVal -= .4; … … 295 295 if( this->bRight ) 296 296 { 297 accel += orthDirection ;297 accel += orthDirection*20; 298 298 rot += Vector(1,0,0); 299 299 rotVal += .4;
Note: See TracChangeset
for help on using the changeset viewer.