DistanceGrabExample Scene
Updated: Aug 7, 2024
The DistanceGrabExamples scene showcases multiple ways for signaling, attracting, and grabbing distance objects:
- Anchor at hand anchors the item at the hand without attracting it.
- Hand to interactable uses a custom IMovementProvider together with a
HandAlignment.AlignOnGrab
to move the object as if the hand was there. A ReticleGhostDrawer shows a copy of the hand at the object position. - Interactable to hand shows a custom IMovementProvider where the item moves toward the hand in a rapid motion and then stays attached to it. A ReticleMeshDrawer signals how the object will be attracted to the grabbing hand.
The DistanceGrabExamples scene can be found in the Unity Project window under Assets > Samples > Meta XR Interaction SDK > VERSION > Example Scenes.
Note: You might need to import the sample from Interaction SDK’s Sample section in Unity Package Manager.
There are three different types of distance grab interactions demonstrated in the DistanceGrabExamples scene:
- Hand grab with pose
- Interactable to hand
- Move hand at interactable
Reference material: