Skip to content

@relu-interactives/spatial-ecs


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

Function: matchHandPose() ​

ts
function matchHandPose(
   shape, 
   definition, 
   context?): XrHandPoseMatch;

Defined in: xr/handPose.ts:650

Score a live hand against a pose.

Confidence is the MINIMUM across constraints, not the average — a soft AND. Averaging lets three perfect fingers outvote one badly wrong one, which is how a fist ends up firing as a thumbs-up.

Parameters ​

ParameterType
shapeXrHandShape
definitionXrHandPoseDefinition
context?XrHandPoseContext

Returns ​

XrHandPoseMatch