MeshParticleEmitter

Particle emitter emitting particles from the inside of a box. It emits the particles randomly between 2 given directions.

Hierarchy

  • MeshParticleEmitter

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

direction1

Find examples in Playground
direction1: Vector3

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

direction2

Find examples in Playground
direction2: Vector3

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

useMeshNormalsForDirection

Find examples in Playground
useMeshNormalsForDirection: boolean

Gets or sets a boolean indicating that particle directions must be built from mesh face normals

Accessors

mesh

Find examples in Playground

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, scene: Scene): void
  • Parse properties from a JSON object

    Parameters

    • serializationObject: any

      defines the JSON object

    • scene: Scene

      defines the hosting scene

    Returns void

serialize

Find examples in Playground
  • serialize(): any

startDirectionFunction

Find examples in Playground
  • startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void
  • 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

    • isLocal: boolean

      defines if the direction should be set in local space

    Returns void

startPositionFunction

Find examples in Playground
  • startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void
  • 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

    • isLocal: boolean

      defines if the position should be set in local space

    Returns void

Generated using TypeDoc