cGELLinearSpring Class Reference
[Module - GEL Dynamics Engine (Deformable Body Simulation)]

cGELLinearSpring models a linear spring between two mass particles. More...

#include <CGELLinearSpring.h>

List of all members.

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.
cGELMassParticlem_node0
 Node 0 of current link.
cGELMassParticlem_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.


Detailed Description

cGELLinearSpring models a linear spring between two mass particles.

Constructor & Destructor Documentation

cGELLinearSpring::cGELLinearSpring ( cGELMassParticle a_node0,
cGELMassParticle a_node1 
)

Constructor of cGELLinearSpring.

Constructor of cGELLinearSpring.

Parameters:
a_node0 Node 0.
a_node1 Node 1.


Member Function Documentation

void cGELLinearSpring::computeForces (  )  [inline]

Compute forces applied on mass nodes

void cGELLinearSpring::render (  )  [inline]

Render link in OpenGL.


The documentation for this class was generated from the following files:


CHAI3D 2.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2009 - CHAI 3D
All Rights Reserved.