Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8234 in orxonox.OLD


Ignore:
Timestamp:
Jun 8, 2006, 1:30:08 PM (18 years ago)
Author:
patrick
Message:

bsp: cr and some manager stuff

Location:
branches/bsp_model/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/collision_reaction/collision_handle.h

    r8190 r8234  
    4141    /** @returns true if this handle should be pulled also if there are no collisions */
    4242    inline bool isContinuousPoll() const { return this->bContinuousPoll; }
     43    /** @returns the type */
     44    inline CREngine::CRType getType() const { return this->type; }
    4345
    4446    void handleCollisions();
  • branches/bsp_model/src/lib/collision_reaction/cr_engine.cc

    r8213 r8234  
    145145    if( (*it)->isCollided() || (*it)->isContinuousPoll())  //does it have any collisions to report at all
    146146    {
     147      PRINTF(0)("CREngine: handle %i\n", (*it)->getType());
    147148      (*it)->handleCollisions();
    148149    }
  • branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8203 r8234  
    5353{
    5454//   Vector normal = collision
    55 
     55  PRINTF(0)("Ground\n");
    5656
    5757}
  • branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc

    r8233 r8234  
    8484  this->alreadyVisible = new bool [this->bspFile->numFaces];
    8585
    86   this->outputFraction = 1.0f; //FIXME is this needed?
     86  this->outputFraction = 1.0f;
    8787}
    8888/*
     
    862862
    863863  Vector forwardDir = worldEntity->getAbsDirX();
    864   forwardDir.x =8.0*forwardDir.x;
    865   forwardDir.y =8.0*forwardDir.y;
    866   forwardDir.z =8.0*forwardDir.z;
     864  forwardDir = forwardDir * 8.0f;
    867865
    868866  Vector upDir = worldEntity->getAbsDirY();
    869867  Vector dest = position;
     868
    870869  dest.x  += forwardDir.x;
    871870  dest.y  += forwardDir.y;
     
    881880
    882881
    883   if(!worldEntity->isA(CL_PLAYABLE)) {
     882  if(/*!worldEntity->isA(CL_PLAYABLE)*/ false) {
    884883
    885884
  • branches/bsp_model/src/world_entities/playable.cc

    r8217 r8234  
    6666  this->bDead = false;
    6767
    68   this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_MODEL);
     68  this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY);
    6969
    7070  registerVar( new SynchronizeableInt( &score, &score, "score" ) );
Note: See TracChangeset for help on using the changeset viewer.