Cyclone Cyclone: cyclone::Spring Class Reference

cyclone::Spring Class Reference

A force generator that applies a Spring force. More...

#include <fgen.h>

Inheritance diagram for cyclone::Spring:

Inheritance graph
[legend]
Collaboration diagram for cyclone::Spring:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Spring (const Vector3 &localConnectionPt, RigidBody *other, const Vector3 &otherConnectionPt, real springConstant, real restLength)
 Creates a new spring with the given parameters.
virtual void updateForce (RigidBody *body, real duration)
 Applies the spring force to the given rigid body.

Detailed Description

A force generator that applies a Spring force.


Constructor & Destructor Documentation

cyclone::Spring::Spring const Vector3 localConnectionPt,
RigidBody other,
const Vector3 otherConnectionPt,
real  springConstant,
real  restLength
 

Creates a new spring with the given parameters.


Member Function Documentation

virtual void cyclone::Spring::updateForce RigidBody body,
real  duration
[virtual]
 

Applies the spring force to the given rigid body.

Implements cyclone::ForceGenerator.


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