5#ifndef NIRT_I_PARTICLE_ATTRACTION_AFFECTOR_HPP_INCLUDED
6#define NIRT_I_PARTICLE_ATTRACTION_AFFECTOR_HPP_INCLUDED
8#include <nirtcpp/core/engine/IParticleAffector.hpp>
A particle affector modifies particles.
Definition IParticleAffector.hpp:42
virtual void affect(u32 now, SParticle *particlearray, u32 count)=0
Affects an array of particles.
A particle affector which attracts or detracts particles.
Definition IParticleAttractionAffector.hpp:17
virtual f32 getSpeed() const =0
Get the speed that points attract to the specified point.
virtual bool getAffectZ() const =0
Get whether or not the particles Z position are affected.
virtual bool getAffectY() const =0
Get whether or not the particles Y position are affected.
virtual void setAttract(bool attract)=0
Set whether or not the particles are attracting or detracting.
virtual bool getAttract() const =0
Get whether or not the particles are attracting or detracting.
virtual void setAffectX(bool affect)=0
Set whether or not this will affect particles in the X direction.
virtual void setAffectY(bool affect)=0
Set whether or not this will affect particles in the Y direction.
virtual void setSpeed(f32 speed)=0
Set the speed, in game units per second that the particles will attract to the specified point.
virtual E_PARTICLE_AFFECTOR_TYPE getType() const override
Get emitter type.
Definition IParticleAttractionAffector.hpp:57
virtual const core::vector3df & getPoint() const =0
Get the point that particles are attracted to.
virtual bool getAffectX() const =0
Get whether or not the particles X position are affected.
virtual void setAffectZ(bool affect)=0
Set whether or not this will affect particles in the Z direction.
virtual void setPoint(const core::vector3df &point)=0
Set the point that particles will attract to.
E_PARTICLE_AFFECTOR_TYPE
Types of built in particle affectors.
Definition IParticleAffector.hpp:18
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110