BoxParticleEmitter

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

Hierarchy

  • BoxParticleEmitter

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.

maxEmitBox

Find examples in Playground
maxEmitBox: Vector3

Maximum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.

minEmitBox

Find examples in Playground
minEmitBox: Vector3

Minimum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.

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