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:
Vector3.new(0, 100, 0)
for left:
Vector3.new (0, 100, 65)
for right:
Vector3.new(0,100,-65)

works good enough for me

2 Likes