@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / XRHitTestSystem
Class: XRHitTestSystem ​
Defined in: systems/XRHitTestSystem.ts:57
Implements ​
Constructors ​
Constructor ​
ts
new XRHitTestSystem(): XRHitTestSystem;Returns ​
XRHitTestSystem
Methods ​
update() ​
ts
update(world): void;Defined in: systems/XRHitTestSystem.ts:65
Parameters ​
| Parameter | Type |
|---|---|
world | World |
Returns ​
void
Implementation of ​
getHitResult() ​
ts
getHitResult(target?): XrHitResult | null;Defined in: systems/XRHitTestSystem.ts:120
Where the given ray meets the real world this frame, or null.
Null is the normal case, not an error: the source may still be being requested, the ray may point at nothing recognised, or the runtime may not have granted hit-test at all.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
target | TargetKey | "viewer" |
Returns ​
XrHitResult | null
dispose() ​
ts
dispose(): void;Defined in: systems/XRHitTestSystem.ts:187
Returns ​
void

