Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <Spring.h>
Public Member Functions | |
Spring () | |
~Spring () | |
void | SetSpring (float t, float c, float l, SpringMass *m1, SpringMass *m2) |
void | Update () |
Represents a spring between two SpringMasses with tension, a spring constant, and length.
|
inline |
Spring constructor.
|
inline |
Spring destructor.
|
inline |
|
inline |
Calculate tension and apply forces to the two masses accordingly.