Skip to content

@relu-interactives/spatial-ecs


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

Type Alias: XrFingerTarget ​

ts
type XrFingerTarget = {
  curl: number;
  tolerance: number;
  baseCurl?: number;
  tipCurl?: number;
  directions?: XrHandPoseDirection[];
};

Defined in: xr/handPose.ts:464

Target curl for one finger, with the slack allowed around it.

Properties ​

PropertyTypeDescriptionDefined in
curlnumber0 = extended, 1 = fully curled.xr/handPose.ts:466
tolerancenumberHalf-width of the accepted band. Larger = easier to perform.xr/handPose.ts:468
baseCurl?numberOptional knuckle constraint, for poses where whole-finger curl is ambiguous.xr/handPose.ts:470
tipCurl?numberOptional outer-joint constraint.xr/handPose.ts:472
directions?XrHandPoseDirection[]Directions this finger may point, world space. Any ONE of them satisfies the constraint, mirroring fingerpose's addDirection — a thumb that may point up OR diagonally up is one pose, not two. Empty or omitted leaves the finger free to point anywhere.xr/handPose.ts:480