PointParticleEmitter2.h
Go to the documentation of this file.
std::shared_ptr< PointParticleEmitter2 > PointParticleEmitter2Ptr
Shared pointer for the PointParticleEmitter2 type.
Definition: PointParticleEmitter2.h:101
Builder & WithSpeed(double speed)
Returns builder with speed.
Builder & WithMaxNumberOfParticles(size_t maxNumberOfParticles)
Returns builder with max number of particles.
Builder & WithDirection(const Vector2D &direction)
Returns builder with direction.
PointParticleEmitter2Ptr MakeShared() const
Builds shared pointer of PointParticleEmitter2 instance.
void SetMaxNumberOfNewParticlesPerSecond(size_t rate)
Sets max number of new particles per second.
PointParticleEmitter2(const Vector2D &origin, const Vector2D &direction, double speed, double spreadAngleInDegrees, size_t maxNumOfNewParticlesPerSec=1, size_t maxNumOfParticles=std::numeric_limits< size_t >::max(), uint32_t seed=0)
Definition: pybind11Utils.h:24
void SetMaxNumberOfParticles(size_t maxNumberOfParticles)
Sets max number of particles to be emitted.
Builder & WithRandomSeed(uint32_t seed)
Returns builder with random seed.
Builder & WithMaxNumberOfNewParticlesPerSecond(size_t maxNumOfNewParticlesPerSec)
PointParticleEmitter2 Build() const
Builds PointParticleEmitter2.
Builder & WithOrigin(const Vector2D &origin)
Returns builder with origin.
Front-end to create PointParticleEmitter2 objects step by step.
Definition: PointParticleEmitter2.h:106
size_t GetMaxNumberOfNewParticlesPerSecond() const
Returns max number of new particles per second.
Builder & WithSpreadAngleInDegrees(double spreadAngleInDegrees)
Returns builder with spread angle in degrees.
Abstract base class for 2-D particle emitter.
Definition: ParticleEmitter2.h:19
size_t GetMaxNumberOfParticles() const
Returns max number of particles to be emitted.
static Builder GetBuilder()
Returns builder fox PointParticleEmitter2.