Changing Raycast size

So I want to change a raycast to where instead of it being a straight line, its a flat rectangle

(here is a picture to help you understand better)

I had thought of maybe just doing multiple raycasts on different cframe angles but i haven’t tested that out

figured it out myself, just have a middle, left, and right raycast. then change the Z vector, for example:

for middle:, 100, 0)
for left: (0, 100, 65)
for right:,100,-65)

works good enough for me