CylinderDirectedParticleEmitter

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

Hierarchy

Implements

Index

Constructors

constructor

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

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

height

Find examples in Playground
height: number

The height of the emission cylinder.

radius

Find examples in Playground
radius: number

The radius of the emission cylinder.

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