API

Class SubEmitter

Sub emitter class used to emit particles from an existing particle

Index
inheritDirection: boolean = false

If the particle should inherit the direction from the particle it's attached to. (+Y will face the direction the particle is moving) (Default: false) Note: This only is supported when using an emitter of type Mesh

inheritedVelocityAmount: number = 0

How much of the attached particles speed should be added to the sub emitted particle (default: 0)

particleSystem: ParticleSystem

the particle system to be used by the sub emitter

type: SubEmitterType = SubEmitterType.END

Type of the submitter (Default: END)

  • Serialize current object to a JSON object

    Parameters

    • serializeTexture: boolean = false

      defines if the texture must be serialized as well

    Returns any

    the serialized object