Changeset 6030 in orxonox.OLD for branches/spaceshipcontrol
- Timestamp:
- Dec 10, 2005, 10:54:34 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities/space_ships
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r6029 r6030 118 118 xMouse = yMouse = 0; 119 119 mouseSensitivity = 0.001; 120 airViscosity =0.5; 120 121 121 122 cycle = 0.0; … … 270 271 Vector move = (velocity)*time; 271 272 272 //orient the spaceship model in the direction of movement.273 //orient the velocity in the direction of the spaceship. 273 274 travelSpeed = velocity.len(); 274 velocity += ((this->getAbsDirX())*travelSpeed-velocity) ;275 velocity += ((this->getAbsDirX())*travelSpeed-velocity)*airViscosity; 275 276 velocity = (velocity.getNormalized())*travelSpeed; 276 277 -
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.h
r5966 r6030 57 57 bool bRollL; //!< rolling button pressed (left) 58 58 bool bRollR; //!< rolling button pressed (right) 59 59 60 60 float xMouse; //!< mouse moved in x-Direction 61 61 float yMouse; //!< mouse moved in y-Direction … … 68 68 float acceleration; //!< the acceleration of the player. 69 69 70 float airViscosity; 71 70 72 }; 71 73
Note: See TracChangeset
for help on using the changeset viewer.