ecsia-monorepo / three/src / ThreeDriver
Interface: ThreeDriver
Defined in: three/src/driver.ts:40
Properties
running
ts
readonly running: boolean;Defined in: three/src/driver.ts:46
True while the rAF loop is running.
Methods
start()
ts
start(): void;Defined in: three/src/driver.ts:42
Begin the rAF loop. No-op if already running or no rAF is available (Node — use tick).
Returns
void
stop()
ts
stop(): void;Defined in: three/src/driver.ts:44
Stop the rAF loop.
Returns
void
tick()
ts
tick(dt): number;Defined in: three/src/driver.ts:52
Advance one frame by dt real seconds and render. The manual entry point for Node/tests (and the loop body the rAF callback calls). Honours fixedTimestep (accumulates) when configured. Returns the number of update calls made this frame.
Parameters
| Parameter | Type |
|---|---|
dt | number |
Returns
number