Skip to content

@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 ​

ParameterType
__namedParametersFaceMeshSystemOptions

Returns ​

FaceMeshSystem

Properties ​

PropertyModifierTypeDefault valueDescriptionDefined in
runsWhilePausedreadonlytruetrueThe 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 ​

ParameterType
worldWorld

Returns ​

void

Implementation of ​

EcsSystem.update


dispose() ​

ts
dispose(): void;

Defined in: systems/FaceMeshSystem.ts:293

Returns ​

void

Implementation of ​

EcsSystem.dispose