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