XR · function

readHand

Read one hand into a skeleton.

Explained in XR.

function readHand(source: XrInputSource, frame: XrFrame, referenceSpace: unknown, into: HandSkeleton): boolean
import { readHand } from '@driftengine/xr';

Parameters

ParameterTypeDescription
sourceXrInputSource
frameXrFrame
referenceSpaceunknown
intoHandSkeleton

In depth

Returns whether anything was tracked. false with the skeleton left holding its last poses is the ordinary case for a hand that has moved out of the cameras' view, and it is not an error.