Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5046 in orxonox.OLD for orxonox/trunk/src/world_entities/npc.cc


Ignore:
Timestamp:
Aug 16, 2005, 9:20:20 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: if a collision occures, the virtual WorldEntity::collidesWith(WorldEntity*, Vector) is called of both objects. the reaction to the collision has to be defined there. default reaction is still output into stdout console. There is now more information

File:
1 edited

Legend:

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

    r5044 r5046  
    4343void NPC::collidesWith(WorldEntity* entity, const Vector& location)
    4444{
    45   PRINTF(0)("COLLISION with an NPC\n");
     45  PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassName(), entity->getClassName(), location.x, location.y, location.z);
    4646}
    4747
Note: See TracChangeset for help on using the changeset viewer.