Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / computeHandShape

Function: computeHandShape() ​

ts
function computeHandShape(joints, handedness): XrHandShape | null;

Defined in: xr/handPose.ts:395

Reduce tracked joints to the matchable shape.

Returns null when the hand is too poorly tracked for ANY finger to be measured — better to report "no pose" than to match against garbage.

Parameters ​

ParameterType
jointsXrHandJoints
handedness"left" | "right"

Returns ​

XrHandShape | null