Changeset 9892 in orxonox.OLD for branches/coll_rect/src/lib/collision_reaction/collision_tube.h
- Timestamp:
- Oct 14, 2006, 1:25:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect/src/lib/collision_reaction/collision_tube.h
r9891 r9892 3 3 * 4 4 * collision tube collects all collisions from all entities 5 * 6 * The collision events are saved in the _collisionList vector in a fixed hirarchy: a collision is defined by the world entities 7 * that collide. For each collision there is an entry in _collisionList. Each collision itself again contains collision events which are 8 * defined as collisions between the boundibg volumes (BV) of the world entities. This could look like this: 9 * 10 * - Collision (WorldEntity_i <=> WorldEntity_j) 11 * +- CollisionEvent( some BV <=> some other BV) 12 * +- CollisionEvent( some BV <=> some other BV) 13 * - Collision (WorldEntity_k <=> WorldEntity_l) 14 * +- CollisionEvent( some BV <=> some other BV) 15 * +- CollisionEvent( some BV <=> some other BV) 16 * +- CollisionEvent( some BV <=> some other BV) 17 * +- CollisionEvent( some BV <=> some other BV) 18 * - ... etc ... 19 * 20 * 21 * When the collisions are processed by the handleCollision() function each collision pair is checked for their reactions (since each 22 * WorldEntity can define several reactions to a collision). After all the reactions are calculated and applied the collision object is 23 * put back. 5 24 */ 6 25 … … 24 43 class CollisionReaction; 25 44 26 //! A class for defining collision reactions and storing events45 //! A class containing all CollisionEvents (structured as defined in the file doxygen tags) 27 46 class CollisionTube : public BaseObject 28 47 { … … 32 51 public: 33 52 CollisionTube(); 34 ~CollisionTube();53 virtual ~CollisionTube(); 35 54 36 55 /** @returns true if at least one of both WorldEntities are subscribed for a collision check */
Note: See TracChangeset
for help on using the changeset viewer.