- Timestamp:
- Feb 14, 2006, 6:04:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/control/src/world_entities/space_ships/space_ship.cc
r7138 r7141 147 147 airViscosity = 0.8; 148 148 controlVelocityX = 25; 149 controlVelocityY = 1 50;150 shipInertia = M_PI_ 4;149 controlVelocityY = 100; 150 shipInertia = M_PI_2; 151 151 maxRudderAmplitude = 0.6 ; 152 152 // cycle = 0.0; … … 352 352 353 353 if( fabsf(mouseDir.distance(this->getAbsDir())) < maxRudderAmplitude )//prevent 'jumping' 354 mouseDir *= (Quaternion(-M_PI/4*xMouse*mouseSensitivity, Vector(0,1,0))*Quaternion(-M_PI/4*yMouse*mouseSensitivity*yInvert, Vector(0,0,1))*pitchDir); 355 354 { 355 356 mouseDir *= (Quaternion(-M_PI/4*xMouse*mouseSensitivity, Vector(0,1,0))*Quaternion(-M_PI/4*yMouse*mouseSensitivity*yInvert, Vector(0,0,1))*pitchDir); 357 } 356 358 xMouse = yMouse = 0; 357 359 }
Note: See TracChangeset
for help on using the changeset viewer.