Changeset 9040 in orxonox.OLD
- Timestamp:
- Jul 3, 2006, 3:23:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/generic_npc.cc
r9038 r9040 198 198 199 199 Vector dir = (currentAnimation.v - this->getAbsCoor()); 200 dir.y = this->getAbsCoor().y;200 dir.y = 0.0f; 201 201 dir.getNormalized(); 202 this->setAbsDir(Quaternion(dir, Vector(0.0, 1.0, 0.0)) /** Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0))*/);202 this->setAbsDir(Quaternion(dir, Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0))); 203 203 204 204 this->setAnimationSpeed(0.5f); … … 265 265 this->setAnimation(RUN, MD2_ANIM_LOOP); 266 266 267 267 268 Vector dir = (currentAnimation.v - this->getAbsCoor()); 268 dir.y = this->getAbsCoor().y;269 dir.y = 0.0f; 269 270 dir.getNormalized(); 270 271 this->setAbsDirSoft(Quaternion(dir, Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0)), 4.0); … … 474 475 Vector dest = currentAnimation.v - this->getAbsCoor(); 475 476 dest.y = 0.0f; 476 PRINTF(0)("%s distance %f\n", this->getName(), dest.len());477 477 if (dest.len() < .5) 478 478 this->nextStep();
Note: See TracChangeset
for help on using the changeset viewer.