Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2007, 8:00:41 PM (18 years ago)
Author:
rennerc
Message:

less collision hacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/projectiles/acid_splash.cc

    r10701 r10740  
    2424#include <cassert>
    2525#include "debug.h"
     26
     27#include "obb_tree.h"
    2628
    2729#include "effects/wobblegrid.h"
     
    6971
    7072  this->grid->toList(OM_ENVIRON);
     73 
     74  this->obbTree = new OBBTree();
     75  this->obbTree->createBox(Vector(0.0f, 0.0f, 0.0f), Vector(1.0f, 1.0f, 1.0f));
     76  this->setOBBTree(this->obbTree);
    7177}
    7278
     
    125131
    126132  this->grid->tick(dt);
    127 
    128   for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)
    129   {
    130     if( ((*eIterator)->getOMListNumber() != (this->origList -1))  && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)
    131     {
    132       (*eIterator)->hit (this->getDamage(),this);
    133       this->deactivate();
    134     }
    135   }
    136 
    137133}
    138134
Note: See TracChangeset for help on using the changeset viewer.