Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9888 in orxonox.OLD


Ignore:
Timestamp:
Oct 13, 2006, 2:33:30 PM (18 years ago)
Author:
patrick
Message:

new structure in docs

Location:
branches/coll_rect/src
Files:
5 edited

Legend:

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

    r9869 r9888  
    11/*!
    22 * @file collision.h
    3  *  Definition of a collision as a two WE hit each other
     3 *  Definition of a collision relation of two WorldEntities
    44 *
    5  *  A is shared between two WorldEntity's CollisionHandles if both are subscribed to this event. In this case only one
     5 *  Is shared between two WorldEntity's CollisionHandles if both are subscribed to this event. In this case only one
    66 *  of the two CollisionHandles will calculate the CollisionReaction and the bDispatched flag will be set afterwards
    77 *  to signal that it's already cared about and should be ignored.
     8 *
     9 *  The collisions itself are saved in this container (CollisionEvent). Since there can be multiple collision events
     10 *  for one collision. Imagine: two objects are intersecting (this throws a Collision): many collision boxes will fire
     11 *  each of this boxes will "create" a CollisionEvent.
    812 */
    913
  • branches/coll_rect/src/lib/collision_reaction/collision_event.h

    r9869 r9888  
    22 * @file collision_event.h
    33 *  Definition of a collision event
     4 *
     5 *  A collision event represents a collision of two bouning boxes. Every CollisionEvent belongs to a Collision object that
     6 *  represents the collision of two WorldEntities.
     7 *
     8 *  There are different types of collisions: obb collisions and bsp collisions. Both collision types use different techniques
     9 *  to represent collisions. This is why this class saves bounding boxes from the OBB as well as the planes from BSP.
    410 */
    511
  • branches/coll_rect/src/lib/collision_reaction/collision_handle.h

    r9869 r9888  
    11/*!
    22 * @file collision_handle.h
    3  * @brief Definition of a collision handle: used for accesing per world entity collision events and reactions
     3 * @brief Definition of a collision handle: used for accessing per world entity collision events and reactions
    44*/
    55
     
    6464
    6565    std::vector<Collision*>       collisionList;           //!< a list full of collisions
    66     /// TODO Take a std::set here!
    6766    std::vector<ClassID>          targetList;              //!< a list of target classes for filtering @TODO TAKE SET INSTEAD OF VECTOR HERE
    6867
  • branches/coll_rect/src/lib/collision_reaction/collision_reaction.cc

    r9869 r9888  
    1111   ### File Specific:
    1212   main-programmer: Patrick Boenzli
    13    co-programmer: ...
    1413*/
    1514
  • branches/coll_rect/src/world_entities/world_entity.h

    r9869 r9888  
    7474  virtual void collidesWithGround(const Vector& feet, const Vector& ray_1, const Vector& ray_2);
    7575
    76 
    7776  /** @returns a reference to the obb tree of this worldentity */
    7877  inline BVTree* getOBBTree() const { return this->obbTree; };
     
    8079  void drawBVTree(int depth, int drawMode) const;
    8180  inline AABB* getModelAABB() const { return (this->aabbNode)?this->aabbNode->getAABB():NULL;}
     81
    8282
    8383  /* --- Collision Reaction Block --- */
Note: See TracChangeset for help on using the changeset viewer.