Applies a rotational acceleration to particles over time. More...

Public Types | |
|
typedef std::tr1::shared_ptr < TorqueAffector > | Ptr |
| Shared pointer type referring to AccelerationAffector objects. | |
Static Public Member Functions | |
| static Ptr | Create (float angularAcceleration) |
| Creates an affector that applies an angular acceleration to particles. | |
Public Member Functions | |
| TorqueAffector (float angularAcceleration) | |
| Constructor. | |
| virtual void | Affect (Particle &particle, float dt) |
| Affects particles. | |
| void | SetAngularAcceleration (float angularAcceleration) |
| Sets the angular acceleration applied to the particles (in degrees). | |
| float | GetAngularAcceleration () const |
| Returns the angular acceleration applied to the particles (in degrees). | |
Applies a rotational acceleration to particles over time.
Affector class that applies a scalar angular acceleration value to each particle.
| thor::TorqueAffector::TorqueAffector | ( | float | angularAcceleration | ) | [explicit] |
Constructor.
| angularAcceleration | The angular acceleration, in degrees. The particle's rotation speed changes by this value each second. |
| virtual void thor::TorqueAffector::Affect | ( | Particle & | particle, |
| float | dt | ||
| ) | [virtual] |
Affects particles.
| particle | The particle currently being affected. |
| dt | Time interval during which particles are affected. |
Implements thor::Affector.
| static Ptr thor::TorqueAffector::Create | ( | float | angularAcceleration | ) | [static] |
Creates an affector that applies an angular acceleration to particles.
| angularAcceleration | The angular acceleration, in degrees. The particle's rotation speed changes by this value each second. |