- Timestamp:
- Dec 21, 2005, 12:25:23 AM (19 years ago)
- Location:
- branches/christmas_branche/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/lib/graphics/importer/md2Model.cc
r6201 r6203 21 21 #include "resource_manager.h" 22 22 23 //#include <fstream>24 25 23 26 24 using namespace std; … … 50 48 sAnim MD2Model::animationList[21] = 51 49 { 52 // begin, end, fps, stoppable50 // begin, end, fps, interruptable 53 51 { 0, 39, 9, 1 }, //!< STAND 54 52 { 40, 45, 10, 1 }, //!< RUN -
branches/christmas_branche/src/world_entities/creatures/md2_creature.cc
r6200 r6203 260 260 if( this->bJump) 261 261 { 262 /*if( ((MD2Model*)this->getModel(0))->getAnim() != JUMP)*/((MD2Model*)this->getModel(0))->setAnim(JUMP);262 ((MD2Model*)this->getModel(0))->setAnim(JUMP); 263 263 } 264 264 else if( fabs(move.len()) > 0.0f) … … 296 296 if( this->bUp ) 297 297 { 298 298 accel += (this->getAbsDirX())*2; 299 299 } 300 300 … … 372 372 { 373 373 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))); 375 376 // if( xMouse*xMouse < 0.9) 376 377 // this->setAbsDir(mouseDir);
Note: See TracChangeset
for help on using the changeset viewer.