@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / ScriptLateUpdateSystem
Class: ScriptLateUpdateSystem ​
Defined in: systems/ScriptLateUpdateSystem.ts:30
Runs onLateUpdate on every Behaviour that has one, once everything else has moved for this frame: physics, scripts, animation, IK, and the transforms written to three.js. So a camera script reads where things will really be drawn, bones included, and can't trail by a frame depending on which script happened to run first.
It comes after the transform sync, so what a script moves here reaches three straight away: the script's own entity and the camera. Move anything else in onUpdate.
Implements ​
Constructors ​
Constructor ​
ts
new ScriptLateUpdateSystem(): ScriptLateUpdateSystem;Returns ​
ScriptLateUpdateSystem
Methods ​
update() ​
ts
update(world, deltaTime): void;Defined in: systems/ScriptLateUpdateSystem.ts:31
Parameters ​
| Parameter | Type |
|---|---|
world | World |
deltaTime | number |
Returns ​
void

