API

Class ConeParticleEmitter

Particle emitter emitting particles from the inside of a cone. It emits the particles alongside the cone volume from the base to the particle. The emission direction might be randomized.

Hierarchy (View Summary)

Implements

Index
directionRandomizer: number = 0

[0] defines how much to randomize the particle direction [0-1] (default is 0)

emitFromSpawnPointOnly: boolean = false

Gets or sets a value indicating if all the particles should be emitted from the spawn point only (the base of the cone)

heightRange: number = 1

Gets or sets a value indicating where on the height the start position should be picked (1 = everywhere, 0 = only surface)

radiusRange: number = 1

Gets or sets a value indicating where on the radius the start position should be picked (1 = everywhere, 0 = only surface)

  • 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

    • isLocal: boolean

      defines if the direction should be set in local space

    Returns void

  • 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

    • isLocal: boolean

      defines if the position should be set in local space

    Returns void