Class hierarchy Compound list File list Compound Members
CollisionDetection Class Reference
This class provides mechanizm of checking for interactions between objects. More...
List of all members.
Public Members
- CollisionDetection ()
- Construct a collision detection object.
- virtual ~CollisionDetection ()
- Destroys a collision detection object.
- long clear ()
- Readys the detection mechanizm, by clearing old results.
- long check ()
- This method performs the actual checks for collisions It returns the number of collisions detected.
- Collision* getCollision (int Number)
- After check was run, query for collision by serial number starting at 0.
- void postEvents ()
- After a check is run, this function may be called to post collision events to each Collidable_Object involved in a collision.
Detailed Description
This class provides mechanizm of checking for interactions between objects.
Member Function Documentation
CollisionDetection::CollisionDetection()
Construct a collision detection object.
virtual CollisionDetection::~CollisionDetection() [virtual]
Destroys a collision detection object.
long CollisionDetection::clear()
Readys the detection mechanizm, by clearing old results.
long CollisionDetection::check()
This method performs the actual checks for collisions It returns the number of collisions detected.
Collision* CollisionDetection::getCollision(int Number)
After check was run, query for collision by serial number starting at 0.
A non NULL value will return a collision object, to be processed.
NULL means that there are no more collisions.
void CollisionDetection::postEvents()
After a check is run, this function may be called to post collision events to each Collidable_Object involved in a collision.
The documentation for this class was generated from the following file: