- Timestamp:
- Dec 4, 2005, 9:45:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r5916 r5918 258 258 259 259 //orient the spaceship model in the direction of movement. 260 261 if(velocity.len() != 0) velocity -= velocity*0.0005; 260 262 261 263 this->shiftCoor (move); … … 280 282 if( this->bUp ) 281 283 { 282 this->shiftCoor(this->getAbsDirX());283 //if(travelSpeed <= 5000) travelSpeed += 10;284 //this->shiftCoor(this->getAbsDirX()); 285 accel += this->getAbsDirX(); 284 286 } 285 287 286 288 if( this->bDown ) 287 289 { 288 this->shiftCoor((this->getAbsDirX())*-1);289 //if(travelSpeed >= 10) travelSpeed -= 10;290 //this->shiftCoor((this->getAbsDirX())*-1); 291 accel -= this->getAbsDirX(); 290 292 } 291 293 … … 326 328 } 327 329 328 velocity += accel *(time);330 velocity += accel; 329 331 //rot.normalize(); 330 332 //this->setRelDirSoft(Quaternion(rotVal, rot), 5);
Note: See TracChangeset
for help on using the changeset viewer.