- Cal3D 0.9 API Reference - |
#include <springsystem.h>
Public Methods | |
CalSpringSystem () | |
Constructs the spring system instance. More... | |
virtual | ~CalSpringSystem () |
Destructs the spring system instance. More... | |
void | calculateForces (CalSubmesh *pSubmesh, float deltaTime) |
Calculates the forces on each unbound vertex. More... | |
void | calculateVertices (CalSubmesh *pSubmesh, float deltaTime) |
Calculates the vertices influenced by the spring system instance. More... | |
bool | create (CalModel *pModel) |
Creates the spring system instance. More... | |
void | destroy () |
Destroys the spring system instance. More... | |
void | update (float deltaTime) |
Updates all the spring systems in the attached meshes. More... | |
Public Attributes | |
CalModel * | m_pModel |
|
Constructs the spring system instance. This function is the default constructor of the spring system instance. |
|
Destructs the spring system instance. This function is the destructor of the spring system instance. |
|
Calculates the forces on each unbound vertex. This function calculates the forces on each unbound vertex of a specific submesh.
|
|
Calculates the vertices influenced by the spring system instance. This function calculates the vertices influenced by the spring system instance.
|
|
Creates the spring system instance. This function creates the spring system instance.
|
|
Destroys the spring system instance. This function destroys all data stored in the spring system instance and frees all allocated memory. |
|
Updates all the spring systems in the attached meshes. This functon updates all the spring systems in the attached meshes. |