Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5026 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Aug 15, 2005, 8:30:28 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: changed and some missunderstandings in the BoundingVolume Class Interface and simplified them

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/world_entity.cc

    r4998 r5026  
    101101 * Implement behaviour like damage application or other miscellaneous collision stuff in this function
    102102*/
    103 void WorldEntity::collideWith(WorldEntity* entity)
     103void WorldEntity::collidesWith(WorldEntity* entity)
    104104{
    105   this->obbTree->collideWith(entity->obbTree, (PNode*)this, (PNode*)entity);
     105  //this->obbTree->collideWith(entity->obbTree, (PNode*)this, (PNode*)entity);
    106106}
    107107
  • orxonox/trunk/src/world_entities/world_entity.h

    r4885 r5026  
    4040  /** @returns true if the entity is visible, false otherwise */
    4141  bool isVisible() const { return this->bVisible; };
     42
    4243  void setCharacterAttributes(CharacterAttributes* charAttr);
    4344  CharacterAttributes* getCharacterAttributes();
     45
     46  /** @returns a reference to the obb tree of this worldentity */
     47  BVTree* getOBBTree() { return this->obbTree; }
    4448
    4549  virtual void postSpawn ();
     
    4751
    4852  virtual void hit (WorldEntity* weapon, Vector* loc);
    49   virtual void collideWith (WorldEntity* entity);
     53  virtual void collidesWith (WorldEntity* entity);
    5054
    5155  /** @returns the Count of Faces on this WorldEntity */
Note: See TracChangeset for help on using the changeset viewer.