DynamicTerrain with Right-handed, Z-up

How would you modify DynamicTerrain to play nice with right-handed, z-up coordinates? Simply swapping the coordinates makes the mesh not render at all. I’m guessing this is due to coordinate assumptions made by DynamicTerrain. Is there a way to get this to work without messing with the internals (okay if hacky)?

playground shows how the terrain with swapped coordinate system fails to render:
Dynamic terrain right-handed | Babylon.js Playground (babylonjs.com)

I decided to go back to the default Y-up babylon coordinate system. I still use right-handed, but created a Z-down transform-node which now serves as the parent of meshes previously defined in world space.

1 Like

This is the way:)