XR · function
readHand
Read one hand into a skeleton.
Explained in XR.
function readHand(source: XrInputSource, frame: XrFrame, referenceSpace: unknown, into: HandSkeleton): booleanimport { readHand } from '@driftengine/xr';Parameters
| Parameter | Type | Description |
|---|---|---|
source | XrInputSource | |
frame | XrFrame | |
referenceSpace | unknown | |
into | HandSkeleton |
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.