Cyclone | Cyclone: cyclone::ParticleAnchoredSpring Class Reference |
#include <pfgen.h>
Inheritance diagram for cyclone::ParticleAnchoredSpring:
Public Member Functions | |
ParticleAnchoredSpring () | |
ParticleAnchoredSpring (Vector3 *anchor, real springConstant, real restLength) | |
Creates a new spring with the given parameters. | |
const Vector3 * | getAnchor () const |
Retrieve the anchor point. | |
void | init (Vector3 *anchor, real springConstant, real restLength) |
Set the spring's properties. | |
virtual void | updateForce (Particle *particle, real duration) |
Applies the spring force to the given particle. | |
Protected Attributes | |
Vector3 * | anchor |
The location of the anchored end of the spring. | |
real | springConstant |
Holds the sprint constant. | |
real | restLength |
Holds the rest length of the spring. |
|
|
|
Creates a new spring with the given parameters.
|
|
Retrieve the anchor point.
|
|
Set the spring's properties.
|
|
Applies the spring force to the given particle.
Implements cyclone::ParticleForceGenerator. Reimplemented in cyclone::ParticleAnchoredBungee. |
|
The location of the anchored end of the spring.
|
|
Holds the rest length of the spring.
|
|
Holds the sprint constant.
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:25 2006). |