Skip to main content

Interface: WorldSensingPortHost

Defined in: webxr-environment/src/world-sensing-director.ts:42

What a port is handed so it can report what the room looks like.

Methods​

anchors()​

anchors(anchors: readonly WorldAnchor[]): void;

Defined in: webxr-environment/src/world-sensing-director.ts:46

Parameters​

ParameterType
anchorsreadonly WorldAnchor[]

Returns​

void


hits()​

hits(sourceId: string, hits: readonly WorldHit[]): void;

Defined in: webxr-environment/src/world-sensing-director.ts:48

The current answers for one standing hit-test request.

Parameters​

ParameterType
sourceIdstring
hitsreadonly WorldHit[]

Returns​

void


meshes()​

meshes(meshes: readonly WorldMesh[]): void;

Defined in: webxr-environment/src/world-sensing-director.ts:45

Parameters​

ParameterType
meshesreadonly WorldMesh[]

Returns​

void


planes()​

planes(planes: readonly WorldPlane[]): void;

Defined in: webxr-environment/src/world-sensing-director.ts:44

The whole current set. Anything absent is treated as gone.

Parameters​

ParameterType
planesreadonly WorldPlane[]

Returns​

void


report()​

report(report: SensingReport): void;

Defined in: webxr-environment/src/world-sensing-director.ts:49

Parameters​

ParameterType
reportSensingReport

Returns​

void