CylinderDirectedParticleEmitter

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

Hierarchy

Implements

Index

Constructors

constructor

  • Creates a new instance CylinderDirectedParticleEmitter

    Parameters

    • Optional radius: number

      the radius of the emission cylinder (1 by default)

    • Optional height: number

      the height of the emission cylinder (1 by default)

    • Optional radiusRange: number

      the range of the emission cylinder [0-1] 0 Surface only, 1 Entire Radius (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 CylinderDirectedParticleEmitter

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].

height

height: number

The height of the emission cylinder.

radius

radius: number

The radius of the emission cylinder.

radiusRange

radiusRange: number

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

Methods

applyToShader

  • applyToShader(effect: Effect): void

clone

getClassName

  • getClassName(): string

getEffectDefines

  • getEffectDefines(): string

parse

  • parse(serializationObject: any): void

serialize

  • serialize(): any

startDirectionFunction

startPositionFunction

Generated using TypeDoc