Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3402 in orxonox.OLD


Ignore:
Timestamp:
Feb 13, 2005, 12:35:35 PM (19 years ago)
Author:
dave
Message:

branches/dave/src: Das direkte Zurueckdrehen ist jetzt nicht mehr moeglich! Zuerst muss das Raumschiffchen in die Nulllage zurueckdrehen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/dave/src/player.cc

    r3401 r3402  
    150150  if( bUp) { accel = accel+(direction*acceleration);accelSlipDirection=accel; }
    151151  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;}
    154154  if( bAscend ) { /* not yet implemented but just: (0,0,1)*acceleration */}
    155155  if( bDescend) {/* FIXME */} /* \todo up and down player movement */
Note: See TracChangeset for help on using the changeset viewer.