Trying to add a physics aggregate to a height map, but failing with No valid mesh was provided for mesh or convex hull shape parameter. Please provide a mesh with valid geometry (number of vertices greater than 0).
If I comment out the aggregate creation, the heightmap renders.
I found some working examples that use the deprecated BABYLON.Mesh.CreateGroundFromHeightMap. That one uses a callback, but the MeshBuilder version seems to by sync?