Changeset 6030 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Dec 10, 2005, 10:54:34 PM (20 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.