SphereDirectedParticleEmitter

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

Hierarchy

Implements

Index

Constructors

constructor

Find examples in Playground
  • 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

Find examples in Playground
direction1: Vector3

The min limit of the emission direction.

direction2

Find examples in Playground
direction2: Vector3

The max limit of the emission direction.

directionRandomizer

Find examples in Playground
directionRandomizer: number

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

radius

Find examples in Playground
radius: number

The radius of the emission sphere.

radiusRange

Find examples in Playground
radiusRange: number

The range of emission [0-1] 0 Surface only, 1 Entire Radius.

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

serialize

Find examples in Playground
  • serialize(): any

startDirectionFunction

Find examples in Playground

startPositionFunction

Find examples in Playground

Generated using TypeDoc