Changeset 5940 in orxonox.OLD for branches/height_map1/src/world_entities/player.cc
- Timestamp:
- Dec 6, 2005, 8:04:48 PM (20 years ago)
- Location:
- branches/height_map1
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map1/src/world_entities/player.cc
r5767 r5940 282 282 //orthDirection = orthDirection.cross (direction); 283 283 284 if( this->bUp && this->getRelCoor().x < 20)284 if( this->bUp ) 285 285 accel += direction; 286 if( this->bDown && this->getRelCoor().x > -5)286 if( this->bDown ) 287 287 accel -= direction; 288 288 289 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2)289 if( this->bLeft ) 290 290 { 291 291 accel -=(orthDirection); … … 293 293 rotVal -= .4; 294 294 } 295 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2)295 if( this->bRight ) 296 296 { 297 297 accel += orthDirection;
Note: See TracChangeset
for help on using the changeset viewer.