oculus-samples / Unity-TheWorldBeyond

Presence Platform showcase demonstrating usage of Scene, Passthrough, Interaction, Voice, and Spatializer. The Oculus SDK and other supporting material is subject to the Oculus proprietary license. Multiple licenses may apply.
Other
306 stars 83 forks source link

Table and couche occluders too high #20

Open davyloots opened 9 months ago

davyloots commented 9 months ago

I had an issue where the generated occluders/colliders for some furniture types were randomly placed too high (e.g. the desk in the "Bedroom" scene in the Meta XR Simulator). I think the issue is caused by the geometry definition sometimes containing a negative height. I also think I fixed this by replacing the line localScale = new Vector3(dimensions.x, dimensions.y, height); by localScale = new Vector3(dimensions.x, dimensions.y, Mathf.Abs(height)); in the method GetVolumeFromTopPlane in VolumeAndPlaneSwitcher.cs.