palTetrahedralSoftBody Class Reference

#include <palSoftBody.h>

Inherits palSoftBody.

List of all members.

Public Member Functions

virtual void Init (const Float *pParticles, const Float *pMass, const int nParticles, const int *pIndices, const int nIndices)=0


Detailed Description

A soft body object. This is usefull for simulating deformable objects, such as a teddy bear. The mesh must be provided as connected tetrahedrons.

Member Function Documentation

virtual void palTetrahedralSoftBody::Init ( const Float *  pParticles,
const Float *  pMass,
const int  nParticles,
const int *  pIndices,
const int  nIndices 
) [pure virtual]

Initializes the soft body with tetrahedral. Each tetraheron must contain 4 nodes indexed in a counter-clockwise order

Parameters:
pParticles A pointer to the particles positions (or vertices/nodes) that describe the mesh
pMass A pointer to the mass for each particle (or vertex) This can be null to indicate defaults.
nParticles The number of particles (vertices). (ie: the total number of Floats / 3)
pIndices A pointer to the indices which describe the tetrahedral mesh
nIndices The number of indices. (ie: the number of tetrahedrons * 4)


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