Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8852 in orxonox.OLD for branches/single_player_map/src


Ignore:
Timestamp:
Jun 28, 2006, 2:31:15 PM (18 years ago)
Author:
patrick
Message:

collision interface extended

Location:
branches/single_player_map/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8847 r8852  
    6666  //   collision->getEntityB()->getAbsCoor().debug();
    6767
    68   Vector height;
     68  float 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/story_entities/game_world.cc

    r8740 r8852  
    308308    /* update the state */
    309309    //this->update (); /// LESS REDUNDANCY.
    310     PNode::getNullParent()->updateNode(this->dtS);
     310//     PNode::getNullParent()->updateNode(this->dtS);
    311311
    312312
  • branches/single_player_map/src/world_entities/world_entity.h

    r8777 r8852  
    8888
    8989  bool registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB);
    90   bool registerCollision(WorldEntity* entity, WorldEntity* groundEntity, Vector normal, Vector position);
     90  bool registerCollision(WorldEntity* entity, WorldEntity* groundEntity, Vector normal, Vector position, bool bInWall = false);
    9191  /** @return true if there is at least on collision reaction subscribed */
    9292  inline bool isReactive() const { return this->bReactive; }
Note: See TracChangeset for help on using the changeset viewer.