Problem with DynamicTerrain

Hi all. I’m having a problem creating a dynamic terrain. I’ve been following the examples presented online but I keep getting the following error:

babylon.dynamicTerrain.min.js:1 Uncaught TypeError: terrain._boundingInfo.reConstruct is not a function
    at DynamicTerrain._updateTerrain (VM71 babylon.dynamicTerrain.min.js:1)
    at DynamicTerrain.update (VM71 babylon.dynamicTerrain.min.js:1)
    at new DynamicTerrain (VM71 babylon.dynamicTerrain.min.js:1)
    at TerrainWind.html:82

A demo scene showing the problem is available here. I’m sure I’m missing something stupid, but can’t seem to figure out what it is…

use it with BJS 4+

Thanks! I’ll try it now.

edit: thanks, that sorted it :wink: