How to get the volume of a waterbody(lake)?

I wanted the fish to eventually favor different depths, find food, favor swimming near others of its kind. But you’re right just changing the direction is will be enough, I’m already doing line traces and can just check if the next location will be in water.