#include <collider.h>
Inheritance diagram for iCollideSystem:
Public Methods | |
virtual iCollider* | CreateCollider (iPolygonMesh *mesh)=0 |
Create an iCollider for the given geometry. | |
virtual bool | Collide (iCollider *collider1, const csTransform *trans1, iCollider *collider2, const csTransform *trans2)=0 |
Test collision between two colliders. More... | |
virtual csCollisionPair* | GetCollisionPairs ()=0 |
Get pointer to current array of collision pairs. More... | |
virtual int | GetCollisionPairCount ()=0 |
Get number of collision pairs in array. | |
virtual void | ResetCollisionPairs ()=0 |
Reset the array with collision pairs. | |
virtual void | SetOneHitOnly (bool o)=0 |
Indicate if we are interested only in the first hit that is found. More... | |
virtual bool | GetOneHitOnly ()=0 |
Return true if this CD system will only return the first hit that is found. More... |
This plugin is a factory for creating iCollider entities. A collider represents an entity in the collision detection world. It uses the geometry data as given by iPolygonMesh.
|
Test collision between two colliders. This is only supported for iCollider objects created by this plugin. Returns false if no collision or else true. The collisions will be added to the collision pair array that you can query with GetCollisionPairs and reset/clear with ResetCollisionPairs. Every call to Collide will add to that array. |
|
Get pointer to current array of collision pairs. This array will grow with every call to Collide until you clear it using 'ResetCollisionPairs'. |
|
Return true if this CD system will only return the first hit that is found. For CD systems that support multiple hits this will return the value set by the SetOneHitOnly() function. For CD systems that support one hit only this will always return true. |
|
Indicate if we are interested only in the first hit that is found. This is only valid for CD algorithms that actually allow the detection of multiple CD hit points. |