class
ParticleEmitter
Handles spawning of new particles using the specified parameters and shape.
Public
Methods
GetShape
SetEmissionRate
Determines the number of particles that are emitted every second.
GetEmissionRate
SetEmissionBursts
Determines discrete intervals to emit particles.
GetEmissionBursts
SetInitialLifetime
Determines the lifetime of particles when they are initially spawned, in seconds.
GetInitialLifetime
SetInitialSpeed
Sets the initial speed of the particles, in meters/second.
The speed is applied along the particle's velocity direction, which is determined by the emission shape and potentially other properties.
GetInitialSpeed
SetInitialSize
Determines the size of the particles when initially spawned.
The size is applied uniformly in all dimensions. Only used if 3D size is disabled.
GetInitialSize
SetInitialSize3D
Determines the size of the particles when initially spawned.
Size can be specified for each dimension separately. Only used if 3D size is enabled.
GetInitialSize3D
SetUse3DSize
Determines should the initial particle size be applied uniformly (if disabled), or evaluated separately for each dimension (if enabled).
GetUse3DSize
SetInitialRotation
Determines the rotation of the particles when initially spawned, in degrees.
The rotation is applied around the particle's local Z axis. Only used if 3D rotation is disabled.
GetInitialRotation
SetInitialRotation3D
Determines the rotation of the particles when initially spawned, in Euler angles.
Only used if 3D rotation is enabled.
GetInitialRotation3D
SetUse3DRotation
Determines should the initial particle rotation be a single angle applied around a Z axis (if disabled), or a set of Euler angles that allow you to rotate around every axis (if enabled).
GetUse3DRotation
SetInitialColor
Determines the initial color (in RGB channels) and transparency (in A channel) of particles.
GetInitialColor
SetRandomOffset
Determines a range of values determining a random offset to apply to particle position after it has been emitted.
Offset will be randomly selected in all three axes in range [-value, value].
GetRandomOffset
SetFlipU
Determines should particle U texture coordinate be randomly flipped, mirroring the image.
The value represents a percent of particles that should be flipped, in range [0, 1].
GetFlipU
SetFlipV
Determines should particle V texture coordinate be randomly flipped, mirroring the image.
The value represents a percent of particles that should be flipped, in range [0, 1].
GetFlipV
staticGetRttiStatic
Private
Methods
Spawn
Spawns new particles in the specified time increment (if any).
- random
- Random number generator.
- state
- Various per-frame information provided by the parent particle system.
- set
- Set to which to append new particles to.
Spawn
Spawns the specified number of particles.
- count
- Number of particles to spawn.
- random
- Random number generator.
- state
- Various per-frame information provided by the parent particle system.
- set
- Set to which to append new particles to.
- spacing
- When false all particles will use the current emitter time. When true the particles will be assigned a time between current time and time step end time, so they are unifomly distributed in this time range.
Returns: Actual number of spawned particles.