Changeset 5966 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Dec 7, 2005, 4:09:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r5964 r5966 119 119 mouseSensitivity = 0.001; 120 120 121 121 cycle = 0.0; 122 122 123 123 … … 264 264 void SpaceShip::tick (float time) 265 265 { 266 cycle += time; 266 267 // spaceship controlled movement 267 268 this->calculateVelocity(time); … … 273 274 // this is the air friction (necessary for a smooth control) 274 275 if(velocity.len() != 0) velocity -= velocity*0.01; 276 277 this->shiftCoor(Vector(0,1,0)*cos(this->cycle*2.0)*0.02); 275 278 276 279 //SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);
Note: See TracChangeset
for help on using the changeset viewer.