Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2005, 12:25:23 AM (19 years ago)
Author:
patrick
Message:

christmas: free movement, but not yet good

File:
1 edited

Legend:

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

    r6200 r6203  
    260260  if( this->bJump)
    261261  {
    262     /*if( ((MD2Model*)this->getModel(0))->getAnim() != JUMP)*/ ((MD2Model*)this->getModel(0))->setAnim(JUMP);
     262    ((MD2Model*)this->getModel(0))->setAnim(JUMP);
    263263  }
    264264  else if( fabs(move.len()) > 0.0f)
     
    296296  if( this->bUp )
    297297   {
    298       accel += (this->getAbsDirX())*2;
     298     accel += (this->getAbsDirX())*2;
    299299   }
    300300
     
    372372  {
    373373    this->xMouse = event.xRel;
    374     mouseDir *= (Quaternion(-M_PI/4*xMouse*mouseSensitivity, Vector(0,1,0)));
     374    this->yMouse = event.yRel;
     375    mouseDir *= (Quaternion(-M_PI/4*xMouse*mouseSensitivity, Vector(0,1,0))*Quaternion(-M_PI/4*yMouse*mouseSensitivity, Vector(0,0,1)));
    375376//     if( xMouse*xMouse < 0.9)
    376377//      this->setAbsDir(mouseDir);
Note: See TracChangeset for help on using the changeset viewer.