nCine::PositionAffector class

Particle position affector.

Base classes

class ParticleAffector
Base class for particle affectors.

Public types

struct PositionStep

Constructors, destructors, conversion operators

PositionAffector()
PositionAffector(PositionAffector&&) defaulted
Default move constructor.
PositionAffector(const PositionAffector& other) protected defaulted
Protected default copy constructor used to clone objects.

Public functions

auto operator=(PositionAffector&&) -> PositionAffector& defaulted
Default move assignment operator.
auto clone() const -> PositionAffector
Returns a copy of this object.
void affect(Particle* particle, float normalizedAge) override
Affects the position of the specified particle.
void addPositionStep(float age, float posX, float posY)
void addPositionStep(float age, Vector2f position)
auto steps() -> SmallVectorImpl<PositionStep>&
auto steps() const -> const SmallVectorImpl<PositionStep>&