raycast method

  1. @override
RaycastResult<ShapeHitbox>? raycast(
  1. Ray2 ray, {
  2. double? maxDistance,
  3. List<ShapeHitbox>? ignoreHitboxes,
  4. RaycastResult<ShapeHitbox>? out,
})
override

Implementation

@override
RaycastResult<ShapeHitbox>? raycast(
  Ray2 ray, {
  double? maxDistance,
  List<ShapeHitbox>? ignoreHitboxes,
  RaycastResult<ShapeHitbox>? out,
}) {
  return collisionDetection.raycast(
    ray,
    maxDistance: maxDistance,
    ignoreHitboxes: ignoreHitboxes,
    out: out,
  );
}