IParticleEmitterType

Particle emitter represents a volume emitting particles. This is the responsibility of the implementation to define the volume shape like cone/sphere/box.

Hierarchy

  • IParticleEmitterType

Implemented by

Index

Methods

applyToShader

Find examples in Playground
  • applyToShader(effect: Effect): void
  • Called by the GPUParticleSystem to setup the update shader

    Parameters

    • effect: Effect

      defines the update shader

    Returns void

clone

Find examples in Playground

getClassName

Find examples in Playground
  • getClassName(): string
  • Returns a string representing the class name

    Returns string

    a string containing the class name

getEffectDefines

Find examples in Playground
  • getEffectDefines(): string
  • Returns a string to use to update the GPU particles update shader

    Returns string

    the effect defines 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
  • Serializes the particle system to a JSON object.

    Returns any

    the JSON object

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