raycastAll method

  1. @override
List<RaycastResult<ShapeHitbox>> raycastAll(
  1. Vector2 origin, {
  2. required int numberOfRays,
  3. double startAngle = 0,
  4. double sweepAngle = tau,
  5. double? maxDistance,
  6. List<Ray2>? rays,
  7. List<ShapeHitbox>? ignoreHitboxes,
  8. List<RaycastResult<ShapeHitbox>>? out,
})
override

Implementation

@override
List<RaycastResult<ShapeHitbox>> raycastAll(
  Vector2 origin, {
  required int numberOfRays,
  double startAngle = 0,
  double sweepAngle = tau,
  double? maxDistance,
  List<Ray2>? rays,
  List<ShapeHitbox>? ignoreHitboxes,
  List<RaycastResult<ShapeHitbox>>? out,
}) {
  return collisionDetection.raycastAll(
    origin,
    numberOfRays: numberOfRays,
    startAngle: startAngle,
    sweepAngle: sweepAngle,
    maxDistance: maxDistance,
    rays: rays,
    ignoreHitboxes: ignoreHitboxes,
    out: out,
  );
}