Triangle mesh helper class. More...
#include <ODEMesh.hh>
Public Member Functions | |
ODEMesh () | |
Constructor. More... | |
virtual | ~ODEMesh () |
Destructor. More... | |
void | Init (const common::SubMesh *_subMesh, ODECollisionPtr _collision, const math::Vector3 &_scale) |
Create a mesh collision shape using a submesh. More... | |
void | Init (const common::Mesh *_mesh, ODECollisionPtr _collision, const math::Vector3 &_scale) |
Create a mesh collision shape using a mesh. More... | |
virtual void | Update () |
Update the collision mesh. More... | |
Triangle mesh helper class.
|
explicit |
Constructor.
|
virtual |
Destructor.
void Init | ( | const common::SubMesh * | _subMesh, |
ODECollisionPtr | _collision, | ||
const math::Vector3 & | _scale | ||
) |
Create a mesh collision shape using a submesh.
[in] | _subMesh | Pointer to the submesh. |
[in] | _collision | Pointer to the collsion object. |
[in] | _scale | Scaling factor. |
void Init | ( | const common::Mesh * | _mesh, |
ODECollisionPtr | _collision, | ||
const math::Vector3 & | _scale | ||
) |
Create a mesh collision shape using a mesh.
[in] | _mesh | Pointer to the mesh. |
[in] | _collision | Pointer to the collsion object. |
[in] | _scale | Scaling factor. |
|
virtual |
Update the collision mesh.