Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Corysia's avatar
Corysia
Expert Protege
6 years ago

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
  • Corysia's avatar
    Corysia
    Expert Protege
    There'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.
  • Corysia's avatar
    Corysia
    Expert Protege
    I ended up solving this with a technique Valem posted on YouTube.