Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10007 in orxonox.OLD


Ignore:
Timestamp:
Dec 4, 2006, 3:55:03 PM (17 years ago)
Author:
patrick
Message:

cd with bsp model works again

Location:
branches/coll_rect/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/lib/collision_reaction/collision_filter.cc

    r10006 r10007  
    142142  bool CollisionFilter::operator()(const WorldEntity& entity) const
    143143  {
    144     PRINTF(0)("operator()(const WorldEntity& entity)\n");
     144//     PRINTF(0)("operator()(const WorldEntity& entity)\n");
    145145
    146146    // if there are no installed criterions just ommit and return
     
    154154      for(; it != this->_filters[i].end(); it++ )
    155155      {
    156          PRINTF(0)("[%i] check %s is a %s?\n", i, entity.getClassName().c_str(), (*it).name().c_str());
     156//          PRINTF(0)("[%i] check %s is a %s?\n", i, entity.getClassName().c_str(), (*it).name().c_str());
    157157        if( unlikely(entity.isA(*it) ) )
    158158          return true;
     
    175175    assert(&entity != NULL);
    176176
    177     PRINTF(0)("operator()(const WorldEntity& entity, const CREngine::ReactionType type)\n");
     177//     PRINTF(0)("operator()(const WorldEntity& entity, const CREngine::ReactionType type)\n");
    178178    // if there are no installed criterions just omit and return
    179179    if( !this->isReactive())
     
    185185    for(; it != this->_filters[type].end(); it++ )
    186186    {
    187        PRINTF(0)("size: %i - %s is a %s?\n", this->_filters[type].size(), entity.getClassName().c_str(), (*it).name().c_str());
     187//        PRINTF(0)("size: %i - %s is a %s?\n", this->_filters[type].size(), entity.getClassName().c_str(), (*it).name().c_str());
    188188      if( entity.isA(*it))
    189189        return true;
  • branches/coll_rect/src/lib/collision_reaction/cr_engine.cc

    r10006 r10007  
    166166        assert((*ci)->getEntityA() != NULL && (*ci)->getEntityB() != NULL);
    167167
    168         PRINTF(0)("CR CHECK: collision between: %s, %s\n", (*ci)->getEntityA()->getClassName().c_str(), (*ci)->getEntityB()->getClassName().c_str());
     168//         PRINTF(0)("CR CHECK: collision between: %s, %s\n", (*ci)->getEntityA()->getClassName().c_str(), (*ci)->getEntityB()->getClassName().c_str());
    169169
    170170        // check if entity A or B is subscibed for this event
     
    173173        {
    174174          this->_reactionList[i]->reactToCollision(*ci);
    175           PRINTF(0)("react to %i\n", i);
     175          PRINTF(0)("executing reaction: %s, between %s - %s\n", this->_reactionList[i]->getClassName().c_str(), (*ci)->getEntityA()->getClassName().c_str(), (*ci)->getEntityB()->getClassName().c_str());
    176176        }
    177177      }
  • branches/coll_rect/src/lib/collision_reaction/cr_physics_full_walk.cc

    r9990 r10007  
    6161  {
    6262
    63     AABB* box = collision->getEntityB()->getModelAABB();
    64     WorldEntity* entity = collision->getEntityB();
     63    AABB* box = collision->getEntityA()->getModelAABB();
     64    WorldEntity* entity = collision->getEntityA();
    6565
    6666    if( box == NULL)
     
    8989
    9090      // calculate the collision position
    91       Vector collPos =  collision->getEntityB()->getAbsCoor()  + box->center - ce->getCollisionPosition();
     91      Vector collPos =  collision->getEntityA()->getAbsCoor()  + box->center - ce->getCollisionPosition();
    9292
    9393      // test the 3 axis differently
  • branches/coll_rect/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r9988 r10007  
    6464  {
    6565
    66     AABB* box = collision->getEntityB()->getModelAABB();
    67     WorldEntity* entity = collision->getEntityB();
     66    AABB* box = collision->getEntityA()->getModelAABB();
     67    WorldEntity* entity = collision->getEntityA();
    6868
    6969    if( box == NULL)
     
    8787
    8888      // calculate the collision position
    89       Vector collPos =  collision->getEntityB()->getAbsCoor()  + box->center - ce->getCollisionPosition();
     89      Vector collPos =  collision->getEntityA()->getAbsCoor()  + box->center - ce->getCollisionPosition();
    9090
    9191      // test the 3 axis differently
  • branches/coll_rect/src/world_entities/world_entity.cc

    r9992 r10007  
    8080
    8181  // registering default reactions:
    82   this->subscribeReaction(CoRe::CREngine::CR_OBJECT_DAMAGE, /* WorldEntity::staticClassID(), */ Projectile::staticClassID());
     82  this->subscribeReaction(CoRe::CREngine::CR_OBJECT_DAMAGE, Projectile::staticClassID());
    8383
    8484  this->toList(OM_NULL);
Note: See TracChangeset for help on using the changeset viewer.