Constrain grabbable object motion in Unity
I want to open a window by grabbing it and pulling open up and down. How can I constrain the movement of the window using the Oculus's Unity package?
I want to open a window by grabbing it and pulling open up and down. How can I constrain the movement of the window using the Oculus's Unity package?
If you're using OVRGrabbable instead of just interacting with a rigidbody then I think the classic workaround is to grab an invisible object that then drives the movement of your window. It's the technique described in this video for a door but a window would be the same. https://www.youtube.com/watch?v=3cJ_uq1m-dg&t=129s
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.