Skip to content

@relu-interactives/spatial-ecs


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

Type Alias: HandAttachOptions ​

ts
type HandAttachOptions = {
  side?: HandSide | "any";
  point?: HandPointName;
  scaleWithHand?: boolean;
  rotateWithHand?: boolean;
  hideWhenLost?: boolean;
};

Defined in: hands/tracker.ts:135

Which hand to attach to, and how.

Properties ​

PropertyTypeDescriptionDefined in
side?HandSide | "any""any" follows the first hand in view.hands/tracker.ts:137
point?HandPointNameWhere on the hand. The middle of the palm by default.hands/tracker.ts:139
scaleWithHand?booleanScales the entity so 1 unit is a palm's length. On by default.hands/tracker.ts:141
rotateWithHand?booleanTurns the entity with the hand. On by default.hands/tracker.ts:143
hideWhenLost?booleanHides the entity while the hand is out of view. On by default.hands/tracker.ts:145