#include <palSoftBody.h>
Inherits palSoftBody.
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 |
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.
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.
nIterations | the number of iterations for the softbody solver. |