Renderer · class
Boom
Explained in Hello world.
class Boomimport { Boom } from '@driftengine/core';Constructor
new
constructor(timing?: Partial<BoomTiming>)| Parameter | Type | Description |
|---|---|---|
timing? | Partial<BoomTiming> |
Properties
| Name | Type | Description |
|---|---|---|
fraction | number | How much of the arm is currently extended, 0–1. |
Methods
reset
reset(fraction: number): voidPlace the arm outright, for a cut or a teleport.
| Parameter | Type | Description |
|---|---|---|
fraction | number |
step
step(clear: number, lengthM: number, dt: number): numberMove toward clear — the fraction of the arm that is unobstructed, already
clamped by the caller to whatever minimum its framing needs.
| Parameter | Type | Description |
|---|---|---|
clear | number | |
lengthM | number | |
dt | number |
More
lengthM is the arm's full length, because the speed limit is stated in
metres and a fraction covers more ground on a longer arm.