Hi everybody!
I’m having quite a problem with SPS right now and don’t know what to do with it, so - I want to generate a terrain made of my imported meshes (which then I’ll use as obstacles to player and as navmesh for enemies) but the problem is that it doesn’t want to work. Whenever I try to add those meshes to my SPS I get either “Cannot read properties of undefined (reading ‘length’)” or “Cannot read properties of undefined (reading ‘getVerticesData’)”. With primitive shapes it does work without a problem but my goal is to use meshes that I made, not just a grey boxes, so my question is - can imported meshes be used as SPS shapes? And if yes - what is the right way to do it?
Here is my repro (clicking on a sphere should generate a new obstacle terrain made of imported meshes):
https://playground.babylonjs.com/#T06UQ3#1