11#ifndef CAL_SPRINGSYSTEM_H
12#define CAL_SPRINGSYSTEM_H
18#include "cal3d/global.h"
19#include "cal3d/vector.h"
46 void update(
float deltaTime);
CalSpringSystem(CalModel *pModel)
Constructs the spring system instance.
Definition springsystem.cpp:36
CalVector & getGravityVector()
Returns the gravity vector.
Definition springsystem.cpp:349
void update(float deltaTime)
Updates all the spring systems in the attached meshes.
Definition springsystem.cpp:311
void calculateVertices(CalSubmesh *pSubmesh, float deltaTime)
Calculates the vertices influenced by the spring system instance.
Definition springsystem.cpp:99
void setGravityVector(const CalVector &vGravity)
Sets the gravity vector.
Definition springsystem.cpp:376
void setForceVector(const CalVector &vForce)
Sets the force vector.
Definition springsystem.cpp:389
void calculateForces(CalSubmesh *pSubmesh, float deltaTime)
Calculates the forces on each unbound vertex.
Definition springsystem.cpp:59
CalVector & getForceVector()
Returns the force vector.
Definition springsystem.cpp:363
void setCollisionDetection(bool collision)
Enable or disable the collision system.
Definition springsystem.cpp:400
The vector class.
Definition vector.h:37