Planeshift
|
Collider creation class. More...
#include <solid.h>
Public Member Functions | |
iCollider * | GetCollider () |
Get the collider object this class creates. | |
psSolid (iObjectRegistry *objectReg) | |
Create a blank collider. | |
void | SetMesh (iMeshWrapper *mesh) |
Set the mesh that we want to use as the colliding one. | |
void | Setup () |
Complete the setup of the class and create the collider wrappers. | |
~psSolid () |
Collider creation class.
For any objects that want to collide with other things use this class and pass in the mesh to be used.
psSolid::psSolid | ( | iObjectRegistry * | objectReg | ) |
Create a blank collider.
objectReg | The Crystal Space object registry needed to create the collider wrappers. |
psSolid::~psSolid | ( | ) |
iCollider* psSolid::GetCollider | ( | ) |
Get the collider object this class creates.
void psSolid::SetMesh | ( | iMeshWrapper * | mesh | ) |
Set the mesh that we want to use as the colliding one.
mesh | The CEL pcmesh object that has the mesh we want to use as the collding one. |
void psSolid::Setup | ( | ) |
Complete the setup of the class and create the collider wrappers.