new SubEmitter(SubEmitterParams) → {SubEmitter}
Default Constructor
Parameters:
Name | Type | Description |
---|---|---|
SubEmitterParams |
SubEmitterParams | struct |
Returns:
New instance of SubEmitter object
- Type
- SubEmitter
Methods
getPhysInherit() → {bool}
Get the state of subparticle physical inheritance
Returns:
this.physInherit
- Type
- bool
getSubParticleLife() → {float}
Get the subparticle life value
Returns:
this.subParticleLife
- Type
- float
getSubParticleSizeDelta() → {float}
Get the subparticle size delta value
Returns:
this.subParticleSizeDelta
- Type
- float
handleSubEmissions()
Checks for main particle death condition
setPhysInherit()
Adjust whether subparticle inherits main particle's physics
setSubParticleLife(val)
Adjust subparticle life value
Parameters:
Name | Type | Description |
---|---|---|
val |
float | inc how much to increment by |
setSubParticleSizeDelta(val)
Adjust subparticle sizeDelta value
Parameters:
Name | Type | Description |
---|---|---|
val |
float | inc how much to increment by |