Class: IWSDKWorldSensingPort
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:78
What an adapter implements. Everything except observe is optional, because
every host has a different subset and a missing method is reported rather
than thrown.
Implements
Constructors
Constructor
new IWSDKWorldSensingPort(world: World, options?: IWSDKWorldSensingPortOptions): IWSDKWorldSensingPort;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:102
Parameters
| Parameter | Type |
|---|---|
world | World |
options | IWSDKWorldSensingPortOptions |
Returns
IWSDKWorldSensingPort
Methods
createAnchor()
createAnchor(pose: WorldPose): Promise<string | null>;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:169
IWSDK anchors an ENTITY rather than handing back an anchor object, so this
makes one at the requested pose and lets SceneUnderstandingSystem attach
it. The id that comes back is the same id the anchor will report with.
Parameters
| Parameter | Type |
|---|---|
pose | WorldPose |
Returns
Promise<string | null>
Implementation of
dispose()
dispose(): void;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:214
Returns
void
Implementation of
observe()
observe(host: WorldSensingPortHost): () => void;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:111
Parameters
| Parameter | Type |
|---|---|
host | WorldSensingPortHost |
Returns
() => void
Implementation of
removeAnchor()
removeAnchor(id: string): void;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:198
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void
Implementation of
setDetection()
setDetection(detection:
| ResolvedWorldDetection
| null): void;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:118
Turn detection on or off. null means stop everything.
Parameters
| Parameter | Type |
|---|---|
detection | | ResolvedWorldDetection | null |
Returns
void
Implementation of
startHitTest()
startHitTest(request: HitTestRequest): void;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:142
Parameters
| Parameter | Type |
|---|---|
request | HitTestRequest |
Returns
void
Implementation of
stopHitTest()
stopHitTest(id: string): void;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:157
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void
Implementation of
update()
update(): void;
Defined in: packages/iwsdk-environment/src/world-sensing-port.ts:205
Called from the director's update; this is where a port polls its host.
Returns
void