Property | Type | Description | |
---|---|---|---|
angle | float | ||
colorFixed | ColorEx | ||
colorRangeEnd | ColorEx | ||
colorRangeStart | ColorEx | ||
commandTable | AxiomCollection |
||
direction | Vector3 | ||
durationFixed | float | ||
durationMax | float | ||
durationMin | float | ||
durationRemain | float | ||
emissionRate | float | ||
emitted | bool | ||
emittedEmitter | string | ||
fixedSpeed | float | ||
fixedTTL | float | ||
isEnabled | bool | ||
maxSpeed | float | ||
maxTTL | float | ||
minSpeed | float | ||
minTTL | float | ||
position | Vector3 | ||
remainder | float | ||
repeatDelayFixed | float | ||
repeatDelayMax | float | ||
repeatDelayMin | float | ||
repeatDelayRemain | float | ||
startTime | float | ||
type | string | ||
up | Vector3 |
Method | Description | |
---|---|---|
CopyTo ( |
|
|
GenerateConstantEmissionCount ( float timeElapsed ) : ushort |
Utility method for generating an emission count based on a constant emission rate.
|
|
GetEmissionCount ( float timeElapsed ) : ushort |
Gets the number of particles which this emitter would like to emit based on the time elapsed. For efficiency the emitter does not actually create new Particle instances (these are reused by the ParticleSystem as existing particles 'die'). The implementation for this method must return the number of particles the emitter would like to emit given the number of seconds which have elapsed (passed in as a parameter). Based on the return value from this method, the ParticleSystem class will call InitParticle once for each particle it chooses to allow to be emitted by this emitter. The emitter should not track these InitParticle calls, it should assume all emissions requested were made (even if they could not be because of particle quotas). |
|
InitParticle ( |
Initializes a particle based on the emitter's approach and parameters. See the GetEmissionCount method for details of why there is a separation between 'requested' emissions and actual initialized particles. |
|
Move ( float x, float y, float z ) : void | ||
MoveTo ( float x, float y, float z ) : void | ||
ParticleEmitter ( ParticleSystem ps ) : System |
Default constructor.
|
|
ScaleVelocity ( float velocityMultiplier ) : void |
Scales the velocity of the emitters by the float argument
|
|
SetDuration ( float min, float max ) : void |
Sets the min/max duration range for this emitter.
|
|
SetParam ( string name, string val ) : bool |
|
Method | Description | |
---|---|---|
GenerateEmissionColor ( ColorEx &color ) : void |
Internal method for generating a color for a particle.
|
|
GenerateEmissionDirection ( Vector3 &dest ) : void |
Utility method for generating particle exit direction
|
|
GenerateEmissionTTL ( ) : float |
Utility method for generating a time-to-live for a particle.
|
|
GenerateEmissionVelocity ( Vector3 &dest ) : void |
Utility method to apply velocity to a particle direction.
|
|
InitDurationRepeat ( ) : void |
|
|
RegisterCommands ( ) : void |
Registers all attribute names with their respective parser. Methods meant to serve as attribute parsers should use a method attribute to |
public CopyTo ( |
||
emitter | ||
return | void |
public GenerateConstantEmissionCount ( float timeElapsed ) : ushort | ||
timeElapsed | float | |
return | ushort |
protected GenerateEmissionColor ( ColorEx &color ) : void | ||
color | ColorEx | /// The color object that will be altered depending on the method of generating the particle color. /// |
return | void |
protected GenerateEmissionDirection ( Vector3 &dest ) : void | ||
dest | Vector3 | Normalized vector dictating new direction. |
return | void |
protected GenerateEmissionVelocity ( Vector3 &dest ) : void | ||
dest | Vector3 | The normalized vector to scale by a randomly generated scale between min and max speed. |
return | void |
public abstract GetEmissionCount ( float timeElapsed ) : ushort | ||
timeElapsed | float | |
return | ushort |
public InitParticle ( |
||
particle | Reference to a particle which must be initialized based on how this emitter starts particles | |
return | void |
public Move ( float x, float y, float z ) : void | ||
x | float | |
y | float | |
z | float | |
return | void |
public MoveTo ( float x, float y, float z ) : void | ||
x | float | |
y | float | |
z | float | |
return | void |
public ParticleEmitter ( ParticleSystem ps ) : System | ||
ps | ParticleSystem | |
return | System |
public ScaleVelocity ( float velocityMultiplier ) : void | ||
velocityMultiplier | float | |
return | void |
public SetDuration ( float min, float max ) : void | ||
min | float | |
max | float | |
return | void |
public SetParam ( string name, string val ) : bool | ||
name | string | |
val | string | |
return | bool |