Forum Discussion
lnw1006
2 years agoHonored Guest
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.
1 Reply
Replies have been turned off for this discussion
- disco42069Honored Guest
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()
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 7 months ago
- 2 years ago
- 2 years ago