Changeset 5966 in orxonox.OLD
- Timestamp:
 - Dec 7, 2005, 4:09:27 PM (20 years ago)
 - Location:
 - branches/spaceshipcontrol/src/world_entities/space_ships
 - Files:
 - 
          
- 2 edited
 
- 
          space_ship.cc (modified) (3 diffs)
 - 
          space_ship.h (modified) (1 diff)
 
 
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);  - 
        
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.h
r5964 r5966 61 61 float yMouse; //!< mouse moved in y-Direction 62 62 float mouseSensitivity; //!< the mouse sensitivity 63 float cycle; //!< hovercycle 63 64 64 65 Vector velocity; //!< the velocity of the player.  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






