@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 ​
| Property | Type | Description | Defined in |
|---|---|---|---|
side? | HandSide | "any" | "any" follows the first hand in view. | hands/tracker.ts:137 |
point? | HandPointName | Where on the hand. The middle of the palm by default. | hands/tracker.ts:139 |
scaleWithHand? | boolean | Scales the entity so 1 unit is a palm's length. On by default. | hands/tracker.ts:141 |
rotateWithHand? | boolean | Turns the entity with the hand. On by default. | hands/tracker.ts:143 |
hideWhenLost? | boolean | Hides the entity while the hand is out of view. On by default. | hands/tracker.ts:145 |

