Changeset 8182 in orxonox.OLD for branches/cr/src/lib
- Timestamp:
- Jun 7, 2006, 11:41:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/collision_event.h
r8028 r8182 11 11 class WorldEntity; 12 12 class BoundingVolume; 13 class Plane; 13 14 14 15 … … 23 24 inline void collide(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB) 24 25 { this->entityA = entityA; this->entityB = entityB; this->bvA = bvA; this->bvB = bvB; } 26 /** collides two WorldEntities @param entity world entity , @param ground ground plane, @param position position on the ground */ 27 inline void collide(WorldEntity* entity, Plane* ground, Vector position) 28 { this->entityA = entity; this->ground = ground; this->position = position; } 25 29 26 30 … … 35 39 36 40 41 inline void operator()(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB) { this->collide(entityA, entityB, bvA, bvB); } 42 inline void operator()(WorldEntity* entity, Plane* ground, Vector position) { this->collide(entity, ground, position); } 43 44 37 45 private: 38 46 WorldEntity* entityA; //!< the collision body A … … 41 49 BoundingVolume* bvA; //!< reference to the bounding volume A 42 50 BoundingVolume* bvB; //!< reference to the bounding volume B 51 52 Plane* ground; //!< the ground plane with which it collides (only for bsp-model collisions 53 Vector position; //!< position of the collision on the ground plane 43 54 }; 44 55
Note: See TracChangeset
for help on using the changeset viewer.