rayIntersection abstract method
Returns information about how the ray intersects the shape.
If you are only interested in the intersection point use RaycastResult.intersectionPoint of the result.
Implementation
RaycastResult<ShapeHitbox>? rayIntersection(
Ray2 ray, {
RaycastResult<ShapeHitbox>? out,
});