Changeset 8847 in orxonox.OLD for branches/single_player_map/src
- Timestamp:
- Jun 28, 2006, 1:23:25 PM (18 years ago)
- Location:
- branches/single_player_map/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8836 r8847 66 66 // collision->getEntityB()->getAbsCoor().debug(); 67 67 68 floatheight;68 Vector height; 69 69 AABB* box = collision->getEntityB()->getModelAABB(); 70 70 WorldEntity* entity = collision->getEntityB(); 71 71 /* 72 72 float CR_MAX_WALK_HEIGHT = 2.0f; 73 73 … … 88 88 89 89 90 } 90 }*/ 91 91 92 92 … … 94 94 95 95 96 #if 096 //#if 0 97 97 if( box != NULL) 98 98 height = ( ce->getCollisionPosition() - collision->getEntityB()->getAbsCoor() )*(-1.0f) ; … … 151 151 152 152 }// if(box!= NULL) 153 #endif153 //#endif 154 154 /* 155 155 PRINTF(0)("Collision with Ground: \n"); -
branches/single_player_map/src/lib/util/executor/executor_functional.cc
r8408 r8847 15 15 16 16 #include "executor.h" 17 std::string ExecutorFunctional_returningString_from[ 5];17 std::string ExecutorFunctional_returningString_from[7]; 18 18 19 19 -
branches/single_player_map/src/lib/util/executor/executor_lua.cc
r8527 r8847 20 20 #include "lunar.h" 21 21 22 std::string temp[ 5];22 std::string temp[7]; 23 23 24 24 template<typename type> type fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(state, 1); return obj;}; -
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.