Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6203 in orxonox.OLD


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

christmas: free movement, but not yet good

Location:
branches/christmas_branche/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/christmas_branche/src/lib/graphics/importer/md2Model.cc

    r6201 r6203  
    2121#include "resource_manager.h"
    2222
    23 //#include <fstream>
    24 
    2523
    2624using namespace std;
     
    5048sAnim MD2Model::animationList[21] =
    5149  {
    52  // begin, end, fps, stoppable
     50 // begin, end, fps, interruptable
    5351    {   0,  39,  9, 1 },   //!< STAND
    5452    {  40,  45, 10, 1 },   //!< RUN
  • 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.