Changeset 6209 in orxonox.OLD for branches/christmas_branche/src/world_entities/creatures/md2_creature.cc
- Timestamp:
- Dec 21, 2005, 2:57:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/world_entities/creatures/md2_creature.cc
r6208 r6209 246 246 this->drawLODsafe(); 247 247 248 this->cameraConnNode.debugDraw(0);248 // this->cameraConnNode.debugDraw(0); 249 249 } 250 250 … … 285 285 //orient the MD2Creature in direction of the mouse 286 286 this->setAbsDir( /*rotQuat*/ mouseDirX); 287 this->cameraConnNode.set RelDir(mouseDirY);287 this->cameraConnNode.setAbsDirSoft(mouseDirX*mouseDirY, 10); 288 288 289 289 this->getWeaponManager()->tick(time); … … 386 386 this->xMouse = event.xRel; 387 387 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)); 390 390 // if( xMouse*xMouse < 0.9) 391 391 // this->setAbsDir(mouseDir);
Note: See TracChangeset
for help on using the changeset viewer.