palConvexGeometry Class Reference

#include <palGeometry.h>

Inheritance diagram for palConvexGeometry:

palGeometry

List of all members.

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)


Detailed Description

A convex geometry This represents a convex polygon shape at a given position constructed from a set of points. TODO: picture.

Member Function Documentation

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.

Parameters:
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.

Parameters:
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


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1