Character falls though the terrain, but only in WebGL build

Hello,

Its very strange that only in the WebGL build my game character falls though the terrain as if the terrain doesnt exist, but when the same thing is run in the editor, it works fine!

To analyze the problem i placed a cube with a collider just under the terrain, and my character stops when it hits that, but totally ignores the terrain. There are places in the terrain where it slopes upward, but the character simply walks through the terrain when run in the browser, but behaves properly when run in the editor.

In both the editor and the browser im loading the same scene from an asset bundle from a remote server.

Anybody know what can cause that?

Thanks

UPDATE: problem SOLVED, i turned off code stripping in the WebGL build and the terrain collider started working!

It’s not expected that you need to disable code stripping.

I suggest you take a look at the “Issues with code stripping” section in this webgl manual page.