Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DParticleEmitterTorus Class Reference

The U4DParticleEmitterTorus class creates and allocates memory for the Torus Emitter. More...

Inherits U4DEngine::U4DParticleEmitter.

Public Member Functions

 U4DParticleEmitterTorus ()
 class constructor
 
 ~U4DParticleEmitterTorus ()
 class destructor
 
void computeVelocity (U4DParticle *uParticle)
 computes the velocity of the particle More...
 
- Public Member Functions inherited from U4DEngine::U4DParticleEmitter
 U4DParticleEmitter ()
 class constructor
 
 ~U4DParticleEmitter ()
 class destructor
 
void emitParticles ()
 emit particles More...
 
virtual void computeRadialAcceleration (U4DParticle *uParticle)
 computes the radial acceleration of the 3D particle More...
 
virtual void computeTangentialAcceleration (U4DParticle *uParticle)
 computes the tangential acceleration of the 3D particle More...
 
float getRandomNumberBetween (float uMinValue, float uMaxValue)
 compute random number More...
 
void computeVariance (U4DVector3n &uVector, U4DVector3n &uVectorVariance)
 Computes the variance of vectors. More...
 
void computeVariance (U4DVector4n &uVector, U4DVector4n &uVectorVariance)
 Computes the variance of vectors. More...
 
void computeVariance (float &uValue, float &uValueVariance)
 Computes the variance of a particular value. More...
 
void computePosition (U4DParticle *uParticle)
 computes the position of the 3D particle More...
 
void computeColors (U4DParticle *uParticle)
 computes the color of the 3D particle More...
 
void computeScale (U4DParticle *uParticle)
 computes the scale of the 3D particle More...
 
void decreaseNumberOfEmittedParticles ()
 decreases the number of particles emitted More...
 
int getNumberOfEmittedParticles ()
 Gets the current number of emitted particles. More...
 
void setNumberOfParticlesPerEmission (int uNumberOfParticles)
 sets the number of particles to emit per emission More...
 
void setParticleEmissionRate (float uEmissionRate)
 sets the emission rate. More...
 
void setParticleSystem (U4DParticleSystem *uParticleSystem)
 sets the pointer to the Particle System More...
 
void setParticleData (U4DParticleData &uParticleData)
 sets the pointer to the Particle Data More...
 
void setEmitContinuously (bool uValue)
 sets if the particle should emit the particles continuously More...
 
float mix (float x, float y, float a)
 linearly interpolates between two values More...
 
void play ()
 Starts the emission of particles.
 
void stop ()
 stops the emission of particles
 
void negateEmitterDurationFlag ()
 negate the emitterDurationFlag
 
void setEmitterDurationRate (float uEmitterDurationRate)
 sets the emitter duration rate More...
 
void computeRotation (U4DParticle *uParticle)
 computes the rotation of the 3D particle More...
 
- Public Member Functions inherited from U4DEngine::U4DParticleEmitterInterface
virtual ~U4DParticleEmitterInterface ()
 interface destructor
 

Additional Inherited Members

- Protected Attributes inherited from U4DEngine::U4DParticleEmitter
int emittedNumberOfParticles
 number of particles to emit
 
int numberOfParticlesPerEmission
 numer of particles per emission
 
float emissionRate
 emission rate of particles
 
float emitterDurationRate
 duration of how long the emitter will emit
 
U4DCallback< U4DParticleEmitter > * emitterRateScheduler
 pointer to Callback to schedule the emission rate
 
U4DTimeremitterRateTimer
 pointer to a timer used in the callback
 
U4DCallback< U4DParticleEmitter > * emitterDurationScheduler
 pointer to Callback to schedule the emission duration
 
U4DTimeremitterDurationTimer
 pointer to a timer used in the callback
 
U4DParticleSystemparticleSystem
 pointer to the Particle System object
 
U4DParticleData particleData
 pointer to the Particle Data object
 
bool emitContinuously
 variable to set whether to emit particles continuously
 

Detailed Description

The U4DParticleEmitterTorus class creates and allocates memory for the Torus Emitter.

Member Function Documentation

◆ computeVelocity()

void U4DEngine::U4DParticleEmitterTorus::computeVelocity ( U4DParticle uParticle)
virtual

computes the velocity of the particle

Parameters
uParticlepointer to the particle object

Reimplemented from U4DEngine::U4DParticleEmitter.