SubEmitter

Sub emitter class used to emit particles from an existing particle

Hierarchy

  • SubEmitter

Index

Constructors

constructor

  • Creates a sub emitter

    Parameters

    • particleSystem: ParticleSystem

      the particle system to be used by the sub emitter

    Returns SubEmitter

Properties

inheritDirection

inheritDirection: boolean

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

inheritedVelocityAmount: number

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

particleSystem

particleSystem: ParticleSystem

the particle system to be used by the sub emitter

type

Type of the submitter (Default: END)

Methods

clone

  • Clones the sub emitter

    Returns SubEmitter

    the cloned sub emitter

dispose

  • dispose(): void
  • Release associated resources

    Returns void

serialize

  • serialize(): any
  • Serialize current object to a JSON object

    Returns any

    the serialized object

Static Parse

  • Parse(serializationObject: any, scene: Scene, rootUrl: string): SubEmitter
  • Creates a new SubEmitter from a serialized JSON version

    Parameters

    • serializationObject: any

      defines the JSON object to read from

    • scene: Scene

      defines the hosting scene

    • rootUrl: string

      defines the rootUrl for data loading

    Returns SubEmitter

    a new SubEmitter

Generated using TypeDoc