cancel
Showing results for 
Search instead for 
Did you mean: 

Implement Multiple Hand Grab Pose Options for the Same Object in Meta XR SDK

OfirRubenov
Honored Guest

Hi folks,

I'm new to XR development and currently working on creating a grabbable object that responds to different hand grab poses depending on the player's holding rotation.

I'm struggling to find any documentation or resources on how to achieve this, and I'm a bit stuck at the moment. If anyone has experience with this or can point me in the right direction, I would really appreciate your help!

Thanks in advance!

Ofir

1 REPLY 1

DvNn
Explorer

Hi @OfirRubenov , are you looking to record different hand poses for objects, like in the HandGrabExamples scene within Interaction SDK? If that's the case then you can see the documentation here for a walkthrough on how to do this: https://developers.meta.com/horizon/documentation/unity/unity-isdk-creating-handgrab-poses/


Essentially you record hand poses in the editor play mode, and the pose recorded window adds these poses + new interactables to your GameObject. Each pose gets a new HandGrabInteractable, and if you want your object to respond differently depending on which pose is used (how the object is grabbed), you can listen to events from the corresponding Interactable.

You can do this either by hooking into the WhenStateChanged event of the HandGrabInteractable or adding an InteractableUnityEventWrapper component referencing the HandGrabInteractable, and using events in the inspector.