Changeset 8847 in orxonox.OLD for branches/single_player_map/src/world_entities/npcs
- Timestamp:
- Jun 28, 2006, 1:23:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/generic_npc.cc
r8831 r8847 408 408 bool GenericNPC::turnTo(float qu, float qx, float qy, float qz) 409 409 { 410 Quaternion destDir = Quaternion(Vector(qx, qy, qz) , qu);410 Quaternion destDir = Quaternion(Vector(qx, qy, qz).getNormalized(), qu); 411 411 412 412 printf("Turning: %f, %f, %f, %f \n",qu,qx,qy,qz); … … 418 418 // if( this->currentAnim != NULL) 419 419 // this->currentAnim->stop(); 420 // 420 // 421 421 PRINTF(0)("SET ANIMATION\n"); 422 422 this->destDir = destDir; 423 // 424 425 423 // 424 425 426 426 if( this->currentAnim != NULL) 427 427 delete this->currentAnim; 428 428 429 429 this->setAbsDir(destDir); 430 430 /* … … 437 437 this->currentAnim->setInfinity(ANIM_INF_CONSTANT); 438 438 this->currentAnim->play();*/ 439 439 440 440 this->setAnimation(STAND, MD2_ANIM_LOOP); 441 441 }
Note: See TracChangeset
for help on using the changeset viewer.