rayIntersection abstract method

RaycastResult<ShapeHitbox>? rayIntersection(
  1. Ray2 ray, {
  2. RaycastResult<ShapeHitbox>? out,
})

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,
});