Options
All
  • Public
  • Public/Protected
  • All
Menu

Sub emitter class used to emit particles from an existing particle

Hierarchy

  • SubEmitter

Index

Constructors

  • Creates a sub emitter

    Parameters

    • particleSystem: ParticleSystem

      the particle system to be used by the sub emitter

    Returns SubEmitter

Properties

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: number

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 of the submitter (Default: END)

Methods

  • Clones the sub emitter

    Returns SubEmitter

    the cloned sub emitter

  • dispose(): void
  • Release associated resources

    Returns void

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

    Parameters

    • Optional serializeTexture: boolean

      defines if the texture must be serialized as well

    Returns any

    the serialized object

  • Creates a new SubEmitter from a serialized JSON version

    Parameters

    • serializationObject: any

      defines the JSON object to read from

    • sceneOrEngine: Scene | ThinEngine

      defines the hosting scene or the hosting engine

    • rootUrl: string

      defines the rootUrl for data loading

    Returns SubEmitter

    a new SubEmitter

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme