![]() |
nCine 2025.06.r503-ff15d8d
A cross-platform 2D game engine
|
Particle rotation affector. More...
#include <ParticleAffectors.h>
Classes | |
struct | RotationStep |
Public Member Functions | |
RotationAffector (RotationAffector &&)=default | |
Default move constructor. | |
RotationAffector & | operator= (RotationAffector &&)=default |
Default move assignment operator. | |
RotationAffector | clone () const |
Returns a copy of this object. | |
void | affect (Particle *particle, float normalizedAge) override |
Affects the rotation of the specified particle. | |
void | addRotationStep (float age, float angle) |
void | addRotationStep (const RotationStep &step) |
unsigned int | numSteps () const override |
Returns the number of steps. | |
void | removeStep (unsigned int index) override |
Removes the step at the specified position index. | |
void | clearSteps () override |
Removes all steps. | |
nctl::Array< RotationStep > & | steps () |
const nctl::Array< RotationStep > & | steps () const |
![]() | |
ParticleAffector (Type type) | |
void | affect (Particle *particle) |
Affects a property of the specified particle. | |
Type | type () const |
Returns the affector type. | |
bool | isEnabled () const |
Returns true if the affector is enabled. | |
void | setEnabled (bool enabled) |
Enables or disables the affector. | |
Protected Member Functions | |
RotationAffector (const RotationAffector &other)=default | |
Protected default copy constructor used to clone objects. | |
![]() | |
ParticleAffector (const ParticleAffector &other)=default | |
Protected default copy constructor used to clone objects. | |
Additional Inherited Members | |
![]() | |
enum class | Type { COLOR , SIZE , ROTATION , POSITION , VELOCITY } |
![]() | |
Type | type_ |
Affector type. | |
bool | enabled_ |
A flag indicating whether the affector is enabled or not. | |
Particle rotation affector.
|
overridevirtual |
Affects the rotation of the specified particle.
Implements ncine::ParticleAffector.
|
inlineoverridevirtual |
Removes all steps.
Implements ncine::ParticleAffector.
|
inlineoverridevirtual |
Returns the number of steps.
Implements ncine::ParticleAffector.
|
overridevirtual |
Removes the step at the specified position index.
Implements ncine::ParticleAffector.