#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 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
| 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) |
1.5.7.1