Forum Discussion
Corysia
6 years agoExpert Protege
Implementing a Sliding Drawer
I've been trying to figure out how to implement a drawer. I was able to solve this using VRTK, but I would like to know if it is possible to do with the Oculus SDK. What I have run in to can be seen in this video. https://www.youtube.com/watch?v=VXUo94cvaZc and I believe it's because the OVRGrabbable script makes the hand the parent of the object, allowing it to rotate, while the RigidBody has kept it locked on the X axis. If someone has an example or a tutorial of how to do this, I'd really like to see it.
3 Replies
Replies have been turned off for this discussion
- Walker8711Honored GuestHow is the RigidBody configured on the dresser itself?
- CorysiaExpert ProtegeThere's a RigidBody on the parent object, the dresser, that has Is Kinematic and Use Gravity checked. The rigid bodies on the drawers is set to neither 'Use Gravity' nor 'Is Kinematic'. It has freeze position of Y and Z checked. And freeze rotation is checked for X, Y, and Z.
- CorysiaExpert ProtegeI ended up solving this with a technique Valem posted on YouTube.
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
- 1 month ago
- 3 months ago