CustomParticleEmitter

Particle emitter emitting particles from a custom list of positions.

Hierarchy

  • CustomParticleEmitter

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

particleDestinationGenerator

Find examples in Playground
particleDestinationGenerator: function

Gets or sets the destination generator that will create the final destination of each particle.

  • Index will be provided when used with GPU particle. Particle will be provided when used with CPU particles

Type declaration

particlePositionGenerator

Find examples in Playground
particlePositionGenerator: function

Gets or sets the position generator that will create the inital position of each particle. Index will be provided when used with GPU particle. Particle will be provided when used with CPU particles

Type declaration

Methods

applyToShader

Find examples in Playground
  • applyToShader(effect: Effect): void

clone

Find examples in Playground

getClassName

Find examples in Playground
  • getClassName(): string

getEffectDefines

Find examples in Playground
  • getEffectDefines(): string

parse

Find examples in Playground
  • parse(serializationObject: any): void
  • Parse properties from a JSON object

    Parameters

    • serializationObject: any

      defines the JSON object

    Returns void

serialize

Find examples in Playground
  • serialize(): any

startDirectionFunction

Find examples in Playground
  • Called by the particle System when the direction is computed for the created particle.

    Parameters

    • worldMatrix: Matrix

      is the world matrix of the particle system

    • directionToUpdate: Vector3

      is the direction vector to update with the result

    • particle: Particle

      is the particle we are computed the direction for

    Returns void

startPositionFunction

Find examples in Playground
  • Called by the particle System when the position is computed for the created particle.

    Parameters

    • worldMatrix: Matrix

      is the world matrix of the particle system

    • positionToUpdate: Vector3

      is the position vector to update with the result

    • particle: Particle

      is the particle we are computed the position for

    Returns void

Generated using TypeDoc