Cyclone Cyclone: cyclone::ParticleBungee Class Reference

cyclone::ParticleBungee Class Reference

A force generator that applies a spring force only when extended. More...

#include <pfgen.h>

Inheritance diagram for cyclone::ParticleBungee:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ParticleBungee (Particle *other, real springConstant, real restLength)
 Creates a new bungee with the given parameters.
virtual void updateForce (Particle *particle, real duration)
 Applies the spring force to the given particle.

Detailed Description

A force generator that applies a spring force only when extended.


Constructor & Destructor Documentation

cyclone::ParticleBungee::ParticleBungee Particle other,
real  springConstant,
real  restLength
 

Creates a new bungee with the given parameters.


Member Function Documentation

virtual void cyclone::ParticleBungee::updateForce Particle particle,
real  duration
[virtual]
 

Applies the spring force to the given particle.

Implements cyclone::ParticleForceGenerator.


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