Options
All
  • Public
  • Public/Protected
  • All
Menu

A Spawn behavior that sends particles out from a single point or ring, and is capable of evenly spacing the particle's starting angles.

Example config:

{
type: 'spawnBurst',
config: {
spacing: 90,
start: 0,
distance: 40,
}
}

Hierarchy

  • BurstSpawnBehavior

Implements

Index

Constructors

  • new BurstSpawnBehavior(config: { distance: number; spacing: number; start: number }): BurstSpawnBehavior
  • Parameters

    • config: { distance: number; spacing: number; start: number }
      • distance: number

        Description: Distance from the emitter to spawn particles, forming a ring/arc.

      • spacing: number

        Description: Spacing between each particle spawned in a wave, in degrees.

      • start: number

        Description: Angle to start placing particles at, in degrees. 0 is facing right, 90 is facing upwards.

    Returns BurstSpawnBehavior

Properties

distance: number
order: BehaviorOrder = BehaviorOrder.Spawn

Order in which the behavior will be handled. Lower numbers are handled earlier, with an order of 0 getting special treatment before the Emitter's transformation is applied.

spacing: number
start: number
editorConfig: BehaviorEditorConfig = null
type: string = 'spawnBurst'

Methods

Generated using TypeDoc