Add a collider in terrain

Hello,I want to get terrain height use Physics.Raycast,how to add a collider in terrain . I have add a boxcollider in terrain ,but it not work.

You just need to enable “Create Physics Meshes” on the Cesium3DTileset, and it should generate colliders for you.

1 Like

Thank you!