ParticleAffector class
#include <nCine/Graphics/ParticleAffectors.h>
Base class for all particle affectors.
An affector mutates one property of a particle (color, size, rotation, position or velocity) each frame, interpolating between user-defined steps according to the particle's normalized age. A ParticleSystem applies every attached affector to each alive particle before it is drawn.
Derived classes
- class ColorAffector
- Affector that animates the color of a particle.
- class PositionAffector
- Affector that animates the position of a particle.
- class RotationAffector
- Affector that animates the rotation of a particle.
- class SizeAffector
- Affector that animates the scale of a particle.
- class VelocityAffector
- Affector that animates the velocity of a particle.
Public types
Constructors, destructors, conversion operators
- ParticleAffector(Type type)
- ~ParticleAffector() virtual
- ParticleAffector(const ParticleAffector& other) protected defaulted
- Protected default copy constructor used to clone objects.
Public functions
Protected variables
Enum documentation
enum class nCine:: ParticleAffector:: Type
Affector type.
Identifies which particle property the affector mutates and selects the matching subclass when cloning.
| Enumerators | |
|---|---|
| COLOR |
Affects the particle color |
| SIZE |
Affects the particle scale |
| ROTATION |
Affects the particle rotation |
| POSITION |
Affects the particle position |
| VELOCITY |
Affects the particle velocity |