Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Stefan.011235's avatar
Stefan.011235
Honored Guest
7 months ago

Sticky Grab with Meta SDK

We have recently started developing with the Meta SDK for building our VR projects in Unity, and have struggled finding/ implementing Sticky Grab interaction. Instead of instantly releasing the interactable after releasing the pinch gesture, we want the interactable to continiuously be grabbed until there has been another pinch grab. This will allow the user to not have to keep pinching/ pressing the Grab button on the controller to hold the object in it's virtual hand.

But as stated above we haven't found this to be supplied by Meta so far, and are wondering if somebody else have stumbled against this 'issue' and maybe have found a way to implement this behaviour. Would love to hear your thoughts and ideas, thanks!

2 Replies

Replies have been turned off for this discussion
  • I have done this before by using the ForceSelect method on the hand interactor and setting the 'allowManualRelease' parameter to false, this will make it so the player cannot drop the object without calling 'ForceRelease':

    _interactorRight.ForceSelect(_handGrabbableRight, false)

     

    • naas3005's avatar
      naas3005
      Honored Guest

      Hey Barty98​ Can you elaborate more on this and if possible give a script or something, Because I want a functionality so that when pressing grip button near a object [ I have controller driven hands in my game] only triggers the grab of my object and when pressing the grip button again it releases the object instead of traditional hold to grab method.