- Cal3D 0.9 API Reference - |
#include <springsystem.h>
Public Member Functions | |
CalSpringSystem () | |
Constructs the spring system instance. | |
virtual | ~CalSpringSystem () |
Destructs the spring system instance. | |
void | calculateForces (CalSubmesh *pSubmesh, float deltaTime) |
Calculates the forces on each unbound vertex. | |
void | calculateVertices (CalSubmesh *pSubmesh, float deltaTime) |
Calculates the vertices influenced by the spring system instance. | |
bool | create (CalModel *pModel) |
Creates the spring system instance. | |
void | destroy () |
Destroys the spring system instance. | |
void | update (float deltaTime) |
Updates all the spring systems in the attached meshes. | |
CalVector & | getGravityVector () |
Returns the gravity vector. | |
void | setGravityVector (const CalVector &vGravity) |
Sets the gravity vector. | |
CalVector & | getForceVector () |
Returns the force vector. | |
void | setForceVector (const CalVector &vForce) |
Sets the force vector. | |
Public Attributes | |
CalModel * | m_pModel |
Protected Attributes | |
CalVector | m_vGravity |
CalVector | m_vForce |
|
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. |
|
Returns the force vector. This function returns the force vector of the spring system instance.
|
|
Returns the gravity vector. This function returns the gravity vector of the spring system instance.
|
|
Sets the force vector. This function sets the force vector of the spring system instance.
|
|
Sets the gravity vector. This function sets the gravity vector of the spring system instance.
|
|
Updates all the spring systems in the attached meshes. This functon updates all the spring systems in the attached meshes. |