DriftScript bindings · interface

XrRuntime

What the host keeps up to date, and what a script reads through.

Explained in Setting up scripts.

interface XrRuntime
import 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

NameTypeDescription
supportreadonlyXrSupport | null
headPositionreadonlyFloat32Array | nullNull outside a session.

Methods

controller

controller(hand: Handedness): ControllerState | null
ParameterTypeDescription
handHandedness

hand

hand(hand: Handedness): HandSkeleton | null
ParameterTypeDescription
handHandedness