Skip to main content
New Participant
October 29, 2024

How to use Forced grabbing

I'm using Meta All in one SDK68.0.2 with hand tracking, but I don't know how to program objects to automatically grab onto my hand, rather than having to grab them myself.

This topic has been closed for replies.

1 reply

New Participant
October 29, 2024

You can use ForceSelect():

// Force Select on trigger enter
private void OnTriggerEnter(Collider other)
    {
        Debug.Log("triggered: " + other.name);
        // modify GetComponent scope on line below as you need
        var handGrabInteractor = other.GetComponentInParent<HandGrabInteractor>(); 
        if (handGrabInteractor == null) return;
        handGrabInteractor.ForceSelect(handGrabInteractable);
    }

 To release you can use ForceRelease()