#include <collider.h>
Inheritance diagram for csColliderWrapper:
Public Methods | |
csColliderWrapper (csObject &parent, iCollideSystem *collide_system, iPolygonMesh *mesh) | |
Create a collider based on a mesh. | |
csColliderWrapper (iObject *parent, iCollideSystem *collide_system, iPolygonMesh *mesh) | |
Create a collider based on a mesh. | |
virtual | ~csColliderWrapper () |
Destroy the plugin collider object. | |
iCollider* | GetCollider () |
Get the collider interface for this object. | |
iCollideSystem* | GetCollideSystem () |
Get the collide system. | |
bool | Collide (csColliderWrapper &pOtherCollider, csTransform *pThisTransform=NULL, csTransform *pOtherTransform=NULL) |
Check if this collider collides with pOtherCollider. More... | |
bool | Collide (csObject &otherObject, csTransform *pThisTransform=NULL, csTransform *pOtherTransform=NULL) |
Similar to Collide for csColliderWrapper. More... | |
bool | Collide (iObject *otherObject, csTransform *pThisTransform=NULL, csTransform *pOtherTransform=NULL) |
Similar to Collide for csColliderWrapper. More... | |
SCF_DECLARE_IBASE_EXT (csObject) | |
Static Public Methods | |
csColliderWrapper* | GetColliderWrapper (csObject &object) |
If object has a child of type csColliderWrapper it is returned. More... | |
csColliderWrapper* | GetColliderWrapper (iObject *object) |
If object has a child of type csColliderWrapper it is returned. More... |
Use of this object is optional (if you can assign your iCollider's to entities in another manner then this is ok) and the engine will not use this object itself.
|
Similar to Collide for csColliderWrapper. Calls GetColliderWrapper for otherCollider. |
|
Similar to Collide for csColliderWrapper. Calls GetColliderWrapper for otherCollider. |
|
Check if this collider collides with pOtherCollider. Returns true if collision detected and adds the pair to the collisions hists vector. This collider and pOtherCollider must be of comparable subclasses, if not false is returned. |
|
If object has a child of type csColliderWrapper it is returned. Otherwise 0 is returned. |
|
If object has a child of type csColliderWrapper it is returned. Otherwise 0 is returned. |