Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2006, 10:27:53 PM (19 years ago)
Author:
patrick
Message:

cr: supporting now shared collision lists

File:
1 edited

Legend:

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

    r8029 r8106  
    3030    /** @return Collision WorldEntity B */
    3131    inline WorldEntity* getEntityB() const { return this->entityB; }
     32    /** @return true if Entity A collides */
     33    inline bool isEntityACollide() { return this->entityACollide; }
     34    /** @return true if Entity B collides */
     35    inline bool isEntityBCollide() { return this->entityBCollide; }
    3236
    3337    /** @returns true if this Collision has already been dispatched */
     
    3842    /** @returns a vector of collision events */
    3943    inline const std::vector<CollisionEvent*>& getCollisionEvents() const { return this->collisionEvents; }
     44
     45
    4046
    4147    void handleCollisionEvents();
     
    4955    WorldEntity*                 entityA;                       //!< the collision body A
    5056    WorldEntity*                 entityB;                       //!< the collision body B
     57    bool                         entityACollide;                //!< true if entity A is subscribed for collision reaction
     58    bool                         entityBCollide;                //!< true if entity B is subscribed for collision reaction
    5159
    5260    bool                         bDispatched;                   //!< true if this collision has already been dispatched
Note: See TracChangeset for help on using the changeset viewer.