#include <palGeometry.h>
Public Member Functions | |
virtual void | Init (palMatrix4x4 &pos, const Float *pVertices, int nVertices, Float mass) |
virtual void | Init (palMatrix4x4 &pos, const Float *pVertices, int nVertices, const int *pIndices, int nIndices, Float mass) |
void palConvexGeometry::Init | ( | palMatrix4x4 & | pos, | |
const Float * | pVertices, | |||
int | nVertices, | |||
const int * | pIndices, | |||
int | nIndices, | |||
Float | mass | |||
) | [virtual] |
Initializes the convex shape with index information. A convex shape constains a set of vertices, which describe the location of corners in an object. These vertices form a 'point cloud' describing the shape.
The vertices are an array of Float values. Each vertex is assumed to be a group of 3 Float values. The indices are an array of integer (int) values. These may be ignored by the physics engine.
pos | The transformation matrix representing the position and orientation of the convex object | |
pVertices | The vertices describing the shape | |
nVertices | The number of vertices (ie: the total number of Floats / 3) | |
pIndices | A pointer to the indices which describe the mesh | |
nIndices | The number of indices. (ie: the number of triangles * 3) | |
mass | The objects's mass |
void palConvexGeometry::Init | ( | palMatrix4x4 & | pos, | |
const Float * | pVertices, | |||
int | nVertices, | |||
Float | mass | |||
) | [virtual] |
Initializes the convex shape. A convex shape constains a set of vertices, which describe the location of corners in an object. These vertices form a 'point cloud' describing the shape.
The vertices are an array of Float values. Each vertex is assumed to be a group of 3 Float values.
pos | The transformation matrix representing the position and orientation of the convex object | |
pVertices | The vertices describing the shape | |
nVertices | The number of vertices (ie: the total number of Floats / 3) | |
mass | The objects's mass |