Options
All
  • Public
  • Public/Protected
  • All
Menu

A Movement behavior that uses an interpolated or stepped list of values for a particles speed at any given moment. Movement direction is controlled by the particle's starting rotation.

Example config:

{
type: 'moveSpeed',
config: {
speed: {
list: [{value: 10, time: 0}, {value: 100, time: 0.25}, {value: 0, time: 1}],
},
minMult: 0.8
}
}

Hierarchy

  • SpeedBehavior

Implements

Index

Constructors

  • Parameters

    • config: { minMult: number; speed: ValueList<number> }
      • minMult: number

        A value between minimum speed multipler and 1 is randomly generated and multiplied with each speed value to generate the actual speed for each particle.

      • speed: ValueList<number>

        Speed of the particles in world units/second, with a minimum value of 0

    Returns SpeedBehavior

Properties

list: PropertyList<number>
minMult: number
order: BehaviorOrder = BehaviorOrder.Late

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.

editorConfig: BehaviorEditorConfig = null
type: string = 'moveSpeed'

Methods

  • updateParticle(particle: Particle, deltaSec: number): void

Generated using TypeDoc