DriftScript bindings · interface
XrRuntime
What the host keeps up to date, and what a script reads through.
Explained in Setting up scripts.
interface XrRuntimeimport type { XrRuntime } from '@driftengine/script';In depth
The consumer's, exactly as AgentRegistry and SoundRegistry are. This package owns neither the
session nor the frame, and which of them is current is not something a binding can know.
Properties
| Name | Type | Description |
|---|---|---|
supportreadonly | XrSupport | null | |
headPositionreadonly | Float32Array | null | Null outside a session. |
Methods
controller
controller(hand: Handedness): ControllerState | null| Parameter | Type | Description |
|---|---|---|
hand | Handedness |
hand
hand(hand: Handedness): HandSkeleton | null| Parameter | Type | Description |
|---|---|---|
hand | Handedness |