@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / FaceMeshSystem
Class: FaceMeshSystem ​
Defined in: systems/FaceMeshSystem.ts:61
Draws every FaceMeshComponent, the same way in the editor and at runtime: the only difference is the surface. An editor gives it the canonical face and a runtime the live one, so a texture lands in the same place on both.
Add it yourself, with the surface: it needs one, so World.setup can't.
ts
new FaceMeshSystem({ surface: engine.getFaceSurface(), cameraFrame: () => engine.getCameraFrame() });Implements ​
Constructors ​
Constructor ​
ts
new FaceMeshSystem(__namedParameters): FaceMeshSystem;Defined in: systems/FaceMeshSystem.ts:76
Parameters ​
| Parameter | Type |
|---|---|
__namedParameters | FaceMeshSystemOptions |
Returns ​
FaceMeshSystem
Properties ​
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
runsWhilePaused | readonly | true | true | The face keeps moving through a pause, and what's on it has to stay on it. | systems/FaceMeshSystem.ts:63 |
Methods ​
update() ​
ts
update(world): void;Defined in: systems/FaceMeshSystem.ts:216
Parameters ​
| Parameter | Type |
|---|---|
world | World |
Returns ​
void
Implementation of ​
dispose() ​
ts
dispose(): void;Defined in: systems/FaceMeshSystem.ts:293
Returns ​
void

