Cyclone Cyclone: cyclone::ParticleFakeSpring Class Reference

cyclone::ParticleFakeSpring Class Reference

A force generator that fakes a stiff spring force, and where one end is attached to a fixed point in space. More...

#include <pfgen.h>

Inheritance diagram for cyclone::ParticleFakeSpring:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ParticleFakeSpring (Vector3 *anchor, real springConstant, real damping)
 Creates a new spring 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 fakes a stiff spring force, and where one end is attached to a fixed point in space.


Constructor & Destructor Documentation

cyclone::ParticleFakeSpring::ParticleFakeSpring Vector3 anchor,
real  springConstant,
real  damping
 

Creates a new spring with the given parameters.


Member Function Documentation

virtual void cyclone::ParticleFakeSpring::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: