Changeset 3675 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- Mar 30, 2005, 5:20:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3672 r3675 178 178 //orthDirection = orthDirection.cross (direction); 179 179 180 if( this->bUp && this->getRelCoor() .x < 20)180 if( this->bUp && this->getRelCoor()->x < 20) 181 181 accel = accel+(direction*acceleration); 182 if( this->bDown && this->getRelCoor() .x > -5)182 if( this->bDown && this->getRelCoor()->x > -5) 183 183 accel = accel-(direction*acceleration); 184 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor() .z*2)184 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor()->z*2) 185 185 accel = accel - (orthDirection*acceleration); 186 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor() .z*2)186 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor()->z*2) 187 187 accel = accel + (orthDirection*acceleration); 188 188 if( this->bAscend )
Note: See TracChangeset
for help on using the changeset viewer.