Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2006, 1:25:47 AM (18 years ago)
Author:
patrick
Message:

new interface to collision registers, more transparent. some more functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/lib/collision_reaction/collision_tube.h

    r9891 r9892  
    33 *
    44 * 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.
    524 */
    625
     
    2443  class CollisionReaction;
    2544
    26   //! A class for defining collision reactions and storing events
     45  //! A class containing all CollisionEvents (structured as defined in the file doxygen tags)
    2746  class CollisionTube : public BaseObject
    2847  {
     
    3251  public:
    3352    CollisionTube();
    34     ~CollisionTube();
     53    virtual ~CollisionTube();
    3554
    3655    /** @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.