@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / computePinch
Function: computePinch() ​
ts
function computePinch(joints, finger): number | null;Defined in: xr/handPose.ts:269
How close a fingertip is to the thumb tip. 1 = touching, 0 = far apart.
Scaled by hand size, so "pinching" means the same gesture on every hand rather than the same number of millimetres.
Parameters ​
| Parameter | Type |
|---|---|
joints | XrHandJoints |
finger | "index" | "middle" | "ring" | "pinky" |
Returns ​
number | null

