Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6551 in orxonox.OLD for branches/spaceshipcontrol


Ignore:
Timestamp:
Jan 18, 2006, 2:19:54 PM (19 years ago)
Author:
bknecht
Message:

Control: SpaceShipcontrol updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc

    r6544 r6551  
    373373  if( this->bRollL /* > -this->getRelCoor().z*2*/)
    374374  {
    375     mouseDir *= Quaternion(-time, Vector(1,0,0));
     375    mouseDir *= Quaternion(-time*2, Vector(1,0,0));
    376376//    accel -= rightDirection;
    377377    //velocityDir.normalize();
     
    381381  if( this->bRollR /* > this->getRelCoor().z*2*/)
    382382  {
    383     mouseDir *= Quaternion(time, Vector(1,0,0));
     383    mouseDir *= Quaternion(time*2, Vector(1,0,0));
    384384
    385385    //    accel += rightDirection;
     
    458458    else if (yMouse < -controlVelocityY) yMouse = -controlVelocityY;
    459459   
    460     //pitchDir *= (Quaternion(xMouse*mouseSensitivity*0.01, Vector(1,0,0)));
     460    pitchDir = (Quaternion(xMouse*mouseSensitivity*0.5, Vector(1,0,0)));
    461461   
    462462    mouseDir *= (Quaternion(-M_PI/4*xMouse*mouseSensitivity, Vector(0,1,0))*Quaternion(-M_PI/4*yMouse*mouseSensitivity, Vector(0,0,1))*pitchDir);
Note: See TracChangeset for help on using the changeset viewer.