palPatchSoftBody 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
virtual void SetIterations (const int nIterations)=0


Detailed Description

A soft body patch. This is usefull for simulating cloth. This may also simulate other closed patch systems such as balloons, depending on whether the physics engine supports this.

Member Function Documentation

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

Initializes the soft body patches with triangles.

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

virtual void palPatchSoftBody::SetIterations ( const int  nIterations  )  [pure virtual]

Soft body systems typically have a seperate solver. With the SetIterations you can set the number of iterations for the soft body solver.

Parameters:
nIterations the number of iterations for the softbody solver.


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

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