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... | |
Applies a rotational acceleration to particles over time.
Affector class that applies a scalar angular acceleration value to each particle.
|
explicit |
Constructor.
angularAcceleration | The angular acceleration, in degrees. The particle's rotation speed changes by this value each second. |
void thor::TorqueAffector::operator() | ( | Particle & | particle, |
sf::Time | dt | ||
) |
Affects particles.
particle | The particle currently being affected. |
dt | Time interval during which particles are affected. |