Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / XrDistanceGrabBehavior

Type Alias: XrDistanceGrabBehavior ​

ts
type XrDistanceGrabBehavior = "snap" | "remote";

Defined in: components/XRInteractable.ts:20

What a distance grab does to the object.

snap brings it to the hand (Half-Life: Alyx style — good for picking things up). remote leaves it where it is and manipulates it at range, which suits large or anchored objects that would look absurd flying into your palm.