Ability to find water surface hit when raycasting from under water

As a Roblox developer, it is currently too hard to raycast from underwater and know when you hit water

I am guessing it will not be too computationally expensive to add because Roblox already renders the surface of water when you are both inside the water and outside of the water
On the other hand, if we want to detect when a raycast hits water, we have to raycast from both sides (extra work for developers and inefficient) OR we have to make parts that define the water hitbox which is ???

Example use cases/reasons why I believe this proposed behavior is intuitive:

  • I want my bullets in game to have impact effects, including with water: https://streamable.com/eyg1p
  • If I am setting the camera focus when sniping (see Setting Focus on low graphics settings is impractical for more info), I want the water surface to prevent the focus from going up into the sky because the water basically makes seeing above water impossible
  • Raycasting has an ignore water property, and every case I’ve encountered where I care about the water surface, I’ve cared about it from both sides
10 Likes