Om
1.0.0
A universal framework for multimedia simulation
|
The base class for objects that detect collisions between shapes. More...
#include <omPhysicsCollisionAlgorithm.h>
Public Member Functions | |
virtual | ~CollisionAlgorithm () |
Destroy this algorithm. More... | |
virtual void | testPairs (const CollisionPair *pairs, Size numPairs, const CollisionRequest &request, const CollisionNarrowphase &narrowphase, CollisionResultSet &result)=0 |
Test the specified array of pairs for collisions and add the results to the result set. More... | |
const ShapeType & | getShapeType1 () const |
Return an object representing the first shape type that this algorithm operates on. More... | |
const ShapeType & | getShapeType2 () const |
Return an object representing the second shape type that this algorithm operates on. More... | |
Protected Member Functions | |
CollisionAlgorithm (const ShapeType *newShapeType1, const ShapeType *newShapeType2) | |
Create a new collision algorithm which operates on the specified collision shape types. More... | |
The base class for objects that detect collisions between shapes.
|
inlinevirtual |
Destroy this algorithm.
|
inlineprotected |
Create a new collision algorithm which operates on the specified collision shape types.
|
pure virtual |
Test the specified array of pairs for collisions and add the results to the result set.
The pairs are assumed to have the same shape types as this algorithm and so can be safely cast to the shape base class.
The method finds any collisions among the pairs and adds the resulting collision points to the output collision result set.
Implemented in om::physics::collision::CollisionAlgorithmGJK< ShapeType1, ShapeType2, getSupportPoint1, getSupportPoint2 >, om::physics::collision::CollisionAlgorithmFunction< ShapeType1, ShapeType2, testPair >, and om::physics::collision::CollisionAlgorithmMeshVsShape< OtherShapeType, getSupportPoint >.
|
inline |
Return an object representing the first shape type that this algorithm operates on.
|
inline |
Return an object representing the second shape type that this algorithm operates on.