five-on-it / apps/client/src/renderer/explosion / Explosions
Interface: Explosions
Defined in: apps/client/src/renderer/explosion.ts:69
The explosions of a scene.
Properties
counts
readonlycounts:object
Defined in: apps/client/src/renderer/explosion.ts:84
Explosions started so far, and flame shards alive now.
shards
shards:
number
started
started:
number
Methods
start()
start(
at,radius,floor,smoke,sparks):void
Defined in: apps/client/src/renderer/explosion.ts:74
An explosion of radius m at (x, y, z), its scorch on the ground at the height floor; smoke puffs a dark puff of the column at a point, sparks a burst of debris.
Parameters
at
x
number
y
number
z
number
radius
number
floor
number
smoke
(x, y, z) => void
sparks
(x, y, z) => void
Returns
void
update()
update(
dt):void
Defined in: apps/client/src/renderer/explosion.ts:82
Moves every explosion on by dt seconds; once a frame.
Parameters
dt
number
Returns
void