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);
const CalVector & getGravityVector() const
Returns the gravity vector.
Definition springsystem.cpp:398
CalSpringSystem(CalModel *pModel)
Constructs the spring system instance.
Definition springsystem.cpp:37
void update(float deltaTime)
Updates all the spring systems in the attached meshes.
Definition springsystem.cpp:360
void calculateVertices(CalSubmesh *pSubmesh, float deltaTime)
Calculates the vertices influenced by the spring system instance.
Definition springsystem.cpp:101
void setGravityVector(const CalVector &vGravity)
Sets the gravity vector.
Definition springsystem.cpp:425
void setForceVector(const CalVector &vForce)
Sets the force vector.
Definition springsystem.cpp:438
void calculateForces(CalSubmesh *pSubmesh, float deltaTime)
Calculates the forces on each unbound vertex.
Definition springsystem.cpp:60
const CalVector & getForceVector() const
Returns the force vector.
Definition springsystem.cpp:412
void setCollisionDetection(bool collision)
Enable or disable the collision system.
Definition springsystem.cpp:449
void resetPositions()
Reset the spring system.
Definition springsystem.cpp:313
The vector class.
Definition vector.h:37