XR · function

controllerFor

The first source for a hand, or null. Two sources may share a handedness and rarely do.

Explained in XR.

function controllerFor(states: readonly ControllerState[], handedness: Handedness): ControllerState | null
import { controllerFor } from '@driftengine/xr';

Parameters

ParameterTypeDescription
statesreadonly ControllerState[]
handednessHandedness