Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8847 in orxonox.OLD


Ignore:
Timestamp:
Jun 28, 2006, 1:23:25 PM (18 years ago)
Author:
bensch
Message:

segfault preverter

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  
    6666  //   collision->getEntityB()->getAbsCoor().debug();
    6767
    68   float height;
     68  Vector height;
    6969  AABB* box = collision->getEntityB()->getModelAABB();
    7070  WorldEntity* entity = collision->getEntityB();
    71 
     71/*
    7272  float CR_MAX_WALK_HEIGHT = 2.0f;
    7373
     
    8888
    8989
    90   }
     90  }*/
    9191
    9292
     
    9494
    9595
    96 #if 0
     96//#if 0
    9797  if( box != NULL)
    9898    height = ( ce->getCollisionPosition() - collision->getEntityB()->getAbsCoor() )*(-1.0f) ;
     
    151151
    152152  }// if(box!= NULL)
    153 #endif
     153//#endif
    154154  /*
    155155  PRINTF(0)("Collision with Ground: \n");
  • branches/single_player_map/src/lib/util/executor/executor_functional.cc

    r8408 r8847  
    1515
    1616#include "executor.h"
    17 std::string ExecutorFunctional_returningString_from[5];
     17std::string ExecutorFunctional_returningString_from[7];
    1818
    1919
  • branches/single_player_map/src/lib/util/executor/executor_lua.cc

    r8527 r8847  
    2020#include "lunar.h"
    2121
    22 std::string temp[5];
     22std::string temp[7];
    2323
    2424template<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  
    408408bool GenericNPC::turnTo(float qu, float qx, float qy, float qz)
    409409{
    410   Quaternion destDir = Quaternion(Vector(qx, qy, qz), qu);
     410  Quaternion destDir = Quaternion(Vector(qx, qy, qz).getNormalized(), qu);
    411411
    412412  printf("Turning: %f, %f, %f, %f \n",qu,qx,qy,qz);
     
    418418//     if( this->currentAnim != NULL)
    419419//       this->currentAnim->stop();
    420 //     
     420//
    421421    PRINTF(0)("SET ANIMATION\n");
    422422    this->destDir = destDir;
    423 // 
    424    
    425    
     423//
     424
     425
    426426    if( this->currentAnim != NULL)
    427427      delete this->currentAnim;
    428    
     428
    429429    this->setAbsDir(destDir);
    430430/*
     
    437437    this->currentAnim->setInfinity(ANIM_INF_CONSTANT);
    438438    this->currentAnim->play();*/
    439    
     439
    440440    this->setAnimation(STAND, MD2_ANIM_LOOP);
    441441  }
Note: See TracChangeset for help on using the changeset viewer.