Changeset 3586 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- Mar 17, 2005, 2:15:33 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3585 r3586 167 167 //orthDirection = orthDirection.cross (direction); 168 168 169 if( bUp) { accel = accel+(direction*acceleration); }170 if( bDown) { accel = accel-(direction*acceleration); }171 if( bLeft ) { accel = accel - (orthDirection*acceleration); }172 if( bRight ) { accel = accel + (orthDirection*acceleration); }173 if( bAscend ) { /* not yet implemented but just: (0,0,1)*acceleration */}174 if( bDescend) {/* FIXME */} /* \todo up and down player movement */169 if( this->bUp) { accel = accel+(direction*acceleration); } 170 if( this->bDown) { accel = accel-(direction*acceleration); } 171 if( this->bLeft ) { accel = accel - (orthDirection*acceleration); } 172 if( this->bRight ) { accel = accel + (orthDirection*acceleration); } 173 if( this->bAscend ) { /* not yet implemented but just: (0,0,1)*acceleration */} 174 if( this->bDescend) {/* FIXME */} /* \todo up and down player movement */ 175 175 176 176 Vector move = accel * time; … … 211 211 else if( !strcmp( cmd->cmd, "right")) this->bRight = !cmd->bUp; 212 212 else if( !strcmp( cmd->cmd, "fire")) this->bFire = !cmd->bUp; 213 else if( !strcmp( cmd->cmd, " weapon_mode")) this->bWeaponChange = !cmd->bUp;214 } 213 else if( !strcmp( cmd->cmd, "mode")) this->bWeaponChange = !cmd->bUp; 214 }
Note: See TracChangeset
for help on using the changeset viewer.