Skip to content

@relu-interactives/spatial-ecs


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

Function: computeFingerCurl() ​

ts
function computeFingerCurl(joints, finger): XrFingerCurl | null;

Defined in: xr/handPose.ts:212

Curl for one finger, or null when the finger isn't tracked well enough.

The thumb yields only two bend angles to the fingers' three, so baseCurl and tipCurl are its first and second bends respectively.

Parameters ​

ParameterType
jointsXrHandJoints
fingerXrFinger

Returns ​

XrFingerCurl | null