![]() |
Public API Reference |
#include <collider.h>
Inheritance diagram for csColliderWrapper:
Public Methods | |
csColliderWrapper (csObject &parent, iCollideSystem *collide_system, iPolygonMesh *mesh) | |
Create a collider based on a mesh. More... | |
csColliderWrapper (iObject *parent, iCollideSystem *collide_system, iPolygonMesh *mesh) | |
Create a collider based on a mesh. More... | |
csColliderWrapper (iObject *parent, iCollideSystem *collide_system, iCollider *collider) | |
Create a collider based on a collider. More... | |
virtual | ~csColliderWrapper () |
Destroy the plugin collider object. More... | |
iCollider * | GetCollider () |
Get the collider interface for this object. More... | |
iCollideSystem * | GetCollideSystem () |
Get the collide system. More... | |
bool | Collide (csColliderWrapper &pOtherCollider, csReversibleTransform *pThisTransform=NULL, csReversibleTransform *pOtherTransform=NULL) |
Check if this collider collides with pOtherCollider. More... | |
bool | Collide (csObject &otherObject, csReversibleTransform *pThisTransform=NULL, csReversibleTransform *pOtherTransform=NULL) |
Similar to Collide for csColliderWrapper. More... | |
bool | Collide (iObject *otherObject, csReversibleTransform *pThisTransform=NULL, csReversibleTransform *pOtherTransform=NULL) |
Similar to Collide for csColliderWrapper. More... | |
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.
Definition at line 46 of file cstool/collider.h.
|
Create a collider based on a mesh.
|
|
Create a collider based on a mesh.
|
|
Create a collider based on a collider.
|
|
Destroy the plugin collider object.
|
|
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. |
|
Get the collider interface for this object.
Definition at line 69 of file cstool/collider.h. |
|
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. |
|
Get the collide system.
Definition at line 72 of file cstool/collider.h. |