#include <CGELLinearSpring.h>
Public Member Functions | |
| cGELLinearSpring (cGELMassParticle *a_node0, cGELMassParticle *a_node1) | |
| Constructor of cGELLinearSpring. | |
| ~cGELLinearSpring () | |
| Destructor of cGELLinearSpring. | |
| void | render () |
| void | computeForces () |
Public Attributes | |
| cColorf | m_color |
| Color property used for displaying link. | |
| cGELMassParticle * | m_node0 |
| Node 0 of current link. | |
| cGELMassParticle * | m_node1 |
| Node 1 of current link. | |
| double | m_kSpringElongation |
| Linear spring constant. | |
| bool | m_enabled |
| Is link enabled? | |
| double | m_kDamperElongation |
| Linear damping. | |
| double | m_length0 |
| Initial length of link. | |
Static Public Attributes | |
| static double | default_kSpringElongation = 100.0 |
| Default property - linear stiffness. | |
| static cColorf | default_color |
| Default property - color property. | |
| cGELLinearSpring::cGELLinearSpring | ( | cGELMassParticle * | a_node0, | |
| cGELMassParticle * | a_node1 | |||
| ) |
Constructor of cGELLinearSpring.
Constructor of cGELLinearSpring.
| a_node0 | Node 0. | |
| a_node1 | Node 1. |
| void cGELLinearSpring::computeForces | ( | ) | [inline] |
Compute forces applied on mass nodes
| void cGELLinearSpring::render | ( | ) | [inline] |
Render link in OpenGL.