Changeset 3402 in orxonox.OLD for orxonox/branches
- Timestamp:
- Feb 13, 2005, 12:35:35 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/dave/src/player.cc
r3401 r3402 150 150 if( bUp) { accel = accel+(direction*acceleration);accelSlipDirection=accel; } 151 151 if( bDown) { accel = accel-(direction*acceleration);accelSlipDirection=accel; } 152 if( bLeft ) { accel = accel-(orthDirection*acceleration);rotate(time);accelSlip=accel; }153 if( bRight ) { accel = accel+(orthDirection*acceleration);rotate(time);accelSlip=accel;}152 if( bLeft ) {if(angle<0) {accel = accel-(orthDirection*acceleration);}rotate(time);accelSlip=accel; } 153 if( bRight ) { if(angle>0){accel = accel+(orthDirection*acceleration);}rotate(time);accelSlip=accel;} 154 154 if( bAscend ) { /* not yet implemented but just: (0,0,1)*acceleration */} 155 155 if( bDescend) {/* FIXME */} /* \todo up and down player movement */
Note: See TracChangeset
for help on using the changeset viewer.