SteamVR Sliding Door Variations

So far I came across two variation of the shoji sliding doors in Japanese Mansion A project. They were nested sliding doors, in a sense. Since they had multiple components compared to the simple sliding door, I had to break their colliders a bit more to work properly. This article showed how I approached these two cases.

Case 1: Shoji door panel with two sliding windows

This one was a door panel, with two smaller window panels that can slide to the side.

For this, I went from the smaller components first, which were the individual window panels. I set them like the simple sliding door from a few days ago.

Then as I build the larger component, instead of using one big collider, I split the collider into several pieces, surrounding the small window panel collider, but not intersecting each other.

This worked really well in this situation. I could open the tiny windows and big panels without any issues. But somehow this did not work for the next case.

Case 2: Shoji door panel with one sliding sub-panel (up and down)

For this one, I tried similar method as in case 1, with the 4 different colliders on the parent, surrounding the child collider. However, probably due to the thickness of the colliders, although I was able to pull the sub-panel down, I ran into issue when I tried to pull the sub-panel back up afterward.

After tinkering for a bit, I found out that setting up 2 colliders on the sides seem to work in this case.