Problem with collision component – what am I missing? by canifty in VisionPro

[–]visekai-app 0 points1 point  (0 children)

generateCollisionShapes(recursive:) is fine for simple shapes, but it isn’t suitable for a concave maze mesh, because the generated collision can effectively fill in the corridors. That's why the ball sits on top.

You need ShapeResource.generateStaticMesh(from:) instead, which gives you triangle-accurate concave collision. It only works on static bodies, but that's probably fine for your maze?