Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Particles

Hierarchy

Index

Constructors

constructor

Properties

direction

direction: ParticleEmitDirection = ParticleEmitDirection.Up

duration

duration: number = 6

gravity

gravity: number = 9.8

initialColor

initialColor: Color = new Color(1, 1, 1, 1)

initialSize

initialSize: Range = new Range(1, 2)

initialSpeed

initialSpeed: Range = new Range(1, 2)

isLooping

isLooping: boolean = false

life

life: Range = new Range(1, 2)

maxParticles

maxParticles: number = 128

particlesPerSecond

particlesPerSecond: number = 30

worldSpace

worldSpace: boolean = false

Accessors

active

  • get active(): boolean
  • set active(active: boolean): void

colorOverLife

entity

geometry

group

id

  • get id(): string

material

  • set material(material: Material): void

parent

  • get parent(): undefined | Entity

shape

sizeOverLife

speedOverLife

version

  • get version(): number

visual

volume

  • set volume(volume: Volume | undefined): void

Methods

checkCollisions

copy

deserialize

destroy

  • destroy(): void

emitParticle

  • emitParticle(): void

isA

  • isA<T>(type: object): boolean

isLoaded

  • isLoaded(): boolean

onReplace

reset

  • reset(): void

serialize

setEntity

  • setEntity(entity: Entity): void

setParticleLife

  • setParticleLife(index: number, life: number): void

setProperty

  • setProperty(name: string, value: any): void

setState

update

  • update(): void

upgrade