The docs for shape_cast say end_position instead of ray, but the internal usage of the parameter is a ray, not the end position of the shape. This is consistent with the docs for cast_ray.
Big thanks to @mijalk0 for helping me figure this out. (Because it said end_position I thought I needed to pass the end position of the shape cast)
The docs for
shape_cast
sayend_position
instead ofray
, but the internal usage of the parameter is a ray, not the end position of the shape. This is consistent with the docs forcast_ray
.Big thanks to @mijalk0 for helping me figure this out. (Because it said
end_position
I thought I needed to pass the end position of the shape cast)