SphereDirectedParticleEmitter

Particle emitter emitting particles from the inside of a sphere. It emits the particles randomly between two vectors.

Hierarchy

Implements

Index

Constructors

constructor

  • Creates a new instance SphereDirectedParticleEmitter

    Parameters

    • Optional radius: number

      the radius of the emission sphere (1 by default)

    • Optional direction1: Vector3

      the min limit of the emission direction (up vector by default)

    • Optional direction2: Vector3

      the max limit of the emission direction (up vector by default)

    Returns SphereDirectedParticleEmitter

Properties

direction1

direction1: Vector3

The min limit of the emission direction.

direction2

direction2: Vector3

The max limit of the emission direction.

directionRandomizer

directionRandomizer: number

How much to randomize the particle direction [0-1].

radius

radius: number

The radius of the emission sphere.

Methods

applyToShader

  • applyToShader(effect: Effect): void

clone

getClassName

  • getClassName(): string

getEffectDefines

  • getEffectDefines(): string

parse

  • parse(serializationObject: any): void

serialize

  • serialize(): any

startDirectionFunction

  • startDirectionFunction(emitPower: number, worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void

startPositionFunction

Generated using TypeDoc