I am looking for a way to detect if objects are within a rectangle-shaped area projected out into 3D space (thus creating a volume).
Basically, I’m looking for the equivalent of the raycast function except I want to probe all points on a plane.
After looking through at the scripting API I found Physics.BoxCast, but my understanding of that function is that the box is casts does not grow with increasing distance. In other words, it does what is shown in the lower part of the figure shown here: https://ibb.co/kSH7n7m, whereas I am looking for something that does what is shown in the upper part.
Does anyone know how I can achieve the type of cast shown in the upper figure?
