I'm trying to create a laser beam like behavior that's wide. instersect_ray
seems to be limited to using single points, so it doesn't look like a viable option.
I was thinking of creating a shape that ends just outside the screen, get hit areas with intersect_shape
, sort them by distance and use the closest one.
Is there a better way of doing this?