Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2005, 2:57:54 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: control works (more or less)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/christmas_branche/src/world_entities/creatures/md2_creature.cc

    r6208 r6209  
    246246  this->drawLODsafe();
    247247
    248   this->cameraConnNode.debugDraw(0);
     248//  this->cameraConnNode.debugDraw(0);
    249249}
    250250
     
    285285  //orient the MD2Creature in direction of the mouse
    286286  this->setAbsDir( /*rotQuat*/ mouseDirX);
    287   this->cameraConnNode.setRelDir(mouseDirY);
     287  this->cameraConnNode.setAbsDirSoft(mouseDirX*mouseDirY, 10);
    288288
    289289  this->getWeaponManager()->tick(time);
     
    386386    this->xMouse = event.xRel;
    387387    this->yMouse = event.yRel;
    388     this->mouseDirX *= Quaternion(-M_PI/4*xMouse*mouseSensitivity, Vector(0,1,0));
    389     this->mouseDirY *= Quaternion(-M_PI/4*yMouse*mouseSensitivity, Vector(0,1,0));
     388    this->mouseDirX *= Quaternion(-M_PI/4*this->xMouse*mouseSensitivity, Vector(0,1,0));
     389    this->mouseDirY *= Quaternion(-M_PI/4*this->yMouse*mouseSensitivity, Vector(0,0,1));
    390390//     if( xMouse*xMouse < 0.9)
    391391//      this->setAbsDir(mouseDir);
Note: See TracChangeset for help on using the changeset viewer.