List of all members | Public Member Functions
thor::TorqueAffector Class Reference

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

Public Member Functions

 TorqueAffector (float angularAcceleration)
 Constructor. More...
 
void operator() (Particle &particle, sf::Time dt)
 Affects particles. More...
 

Detailed Description

Applies a rotational acceleration to particles over time.

Affector class that applies a scalar angular acceleration value to each particle.

Constructor & Destructor Documentation

thor::TorqueAffector::TorqueAffector ( float  angularAcceleration)
explicit

Constructor.

Parameters
angularAccelerationThe angular acceleration, in degrees. The particle's rotation speed changes by this value each second.

Member Function Documentation

void thor::TorqueAffector::operator() ( Particle particle,
sf::Time  dt 
)

Affects particles.

Parameters
particleThe particle currently being affected.
dtTime interval during which particles are affected.

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