Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7958 in orxonox.OLD for branches/cr/src/lib/collision_reaction


Ignore:
Timestamp:
May 29, 2006, 5:32:42 PM (18 years ago)
Author:
patrick
Message:

cr: collision reactance introduced

Location:
branches/cr/src/lib/collision_reaction
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/cr_engine.cc

    r7950 r7958  
    5252
    5353  if( this->cachedCollisions.size() != CR_MAX_COLLISIONS)
    54     PRINTF(0)("CollisionReaction Error: cache size missmatch: %i of %i\n", this->cachedCollisions.size(), CR_NUMBER);
     54    PRINTF(0)("CollisionReaction Error: cache size missmatch: %i of %i\n", this->cachedCollisions.size(), CR_MAX_COLLISIONS);
    5555
    5656  this->reset();
     
    5959  for(; it < this->cachedCollisions.end(); it++)
    6060    delete *it;
    61 
    62 //    while( !this->cachedCollisions.empty())
    63 //      delete this->cachedCollisions.back();
    6461
    6562  this->cachedCollisions.clear();
  • branches/cr/src/lib/collision_reaction/cr_engine.h

    r7946 r7958  
    5151
    5252  /** @returns an instance to a collision object. instead of creating new object this ones can be resycled */
    53   inline Collision* popCollisionObject() { if(!this->cachedCollisions.empty()) { this->cachedCollisions.back(); this->cachedCollisions.pop_back();} else return NULL; }
     53  inline Collision* popCollisionObject() { if(!this->cachedCollisions.empty()) { return this->cachedCollisions.back(); this->cachedCollisions.pop_back();} else return NULL; }
    5454  /** @param collision: returns the Collision object back to the cache list */
    5555  inline void pushCollisionObject(Collision* collision) { this->cachedCollisions.push_back(collision); }
Note: See TracChangeset for help on using the changeset viewer.