PointParticleEmitter

Particle emitter emitting particles from a point. It emits the particles randomly between 2 given directions.

Hierarchy

  • PointParticleEmitter

Implements

Index

Constructors

constructor

Properties

direction1

direction1: Vector3

Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.

direction2

direction2: Vector3

Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.

Methods

applyToShader

  • applyToShader(effect: Effect): void

clone

getClassName

  • getClassName(): string

getEffectDefines

  • getEffectDefines(): string

parse

  • parse(serializationObject: any): void
  • Parse properties from a JSON object

    Parameters

    • serializationObject: any

      defines the JSON object

    Returns void

serialize

  • serialize(): any

startDirectionFunction

  • 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

  • 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