Bool Terrain:IsPositionInWater(Vector3 position)

I want to make a sound effect that plays when the camera goes underwater. There’s no way to do that because you can’t reliably check if the camera is underwater. So I want an API that can do this.

15 Likes

Why not Terrain:GetMaterial(Vector3 position)?

It doesn’t consider wave height

10 Likes