How to implement drawers realistically in AR/HoloLens2 using Unity?

22 Views Asked by At

I saw a tutorial for drawers in VR using the XR kit and wanted to implement them in AR. The idea is: the user grabs the handle and pulls it forward to then pull the drawer forward, but nothing moves right now. The handle moves slightly, but the drawer stays put. Interaction with the whole module also works fine, it's just the drawers that don't. I'm using Unity 2019.4.24f.

Here are the relations of the objects:

  • The drawer object is a child of the module object
  • The module has a box collider, constraint manager, object manipulator, rotation axis constraint, move axis constraint.
  • The Drawer, which is a child of this object, has a Mesh Rendered, rigid body (continuous dynamic), mesh collider, configurable joint, locked for every motion except X, move axis constraint, near interaction grabbable, rotation axis constraint.
  • This drawer has a child handle, which has a mesh rendered, box collider, rigid body, (continuous dynamic), near interaction grabbable, object manipulator, fixed joint (referencing the rigid body of the drawer).

Is there anything I have missed or did incorrectly? My question is already stated above but how would you implement drawers realistically in AR using Unity?

I'm aware that implementing the drawers with an easy animation would be faster, but, if possible, I really want to make this version with joints work.

0

There are 0 best solutions below