Class: EnvironmentSystem
Defined in: packages/iwsdk-environment/src/index.ts:63
The per-frame tick.
Neither director owns a loop, so something has to drive them, and on IWSDK
that something is a system - which means the environment stops advancing
when the session loses focus, exactly like the rest of the app.
registerEnvironment registers this for you; it is exported so an app that
builds its own system schedule can place it deliberately.
IWSDK hands a system its delta in SECONDS and the directors take milliseconds. That conversion happens here, once.
Extends
System<SystemSchema, { },this>
Constructors
Constructor
new EnvironmentSystem(
_w: World,
_qm: QueryManager,
_p: number
): EnvironmentSystem;
Defined in: node_modules/elics/lib/system.d.ts:76
Parameters
| Parameter | Type |
|---|---|
_w | World |
_qm | QueryManager |
_p | number |
Returns
EnvironmentSystem
Inherited from
createSystem({}).constructor
Methods
update()
update(delta: number): void;
Defined in: packages/iwsdk-environment/src/index.ts:64
Per-frame tick. Both arguments are in seconds (Three.js Clock convention),
not milliseconds.
Parameters
| Parameter | Type | Description |
|---|---|---|
delta | number | Seconds since the previous frame. |
Returns
void
Overrides
createSystem({}).update