Detecting water terrain cells with raycasts

Hello, i’m currently making a blood system, and i want to find out how to detect if a raycast has hit terrain water, and if so, my blood droplet dissolves in the water.
(i can script the blood dissolving myself)

Make sure that collisions with water is enabled on the raycast and then check if the material of the object which is hit is terrain water.

Raycast material property

List of Materials

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.