cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing a Sliding Drawer

Corysia
Level 5
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 3

Walker8711
Level 2
How is the RigidBody configured on the dresser itself?

Corysia
Level 5
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
Level 5
I ended up solving this with a technique Valem posted on YouTube.