Ammo Heightfield Terrain Shape

Whoa this works great, @arcman7 , thank you!

Could I ask about how you chose to use:

var terrainMinHeight = -2;

If I try setting terrainMinHeight to 0, the Ammo debug drawer shows the pink surface to be below the visual mesh. I’m curious if you found that -2 was the perfect value to set here. Thank you again!

I don’t remember where that offset comes from, I found it by experimenting

1 Like