raytrace method

  1. @override
Iterable<RaycastResult<ShapeHitbox>> raytrace(
  1. Ray2 ray, {
  2. int maxDepth = 10,
  3. List<ShapeHitbox>? ignoreHitboxes,
  4. List<RaycastResult<ShapeHitbox>>? out,
})
override

Implementation

@override
Iterable<RaycastResult<ShapeHitbox>> raytrace(
  Ray2 ray, {
  int maxDepth = 10,
  List<ShapeHitbox>? ignoreHitboxes,
  List<RaycastResult<ShapeHitbox>>? out,
}) {
  return collisionDetection.raytrace(
    ray,
    maxDepth: maxDepth,
    ignoreHitboxes: ignoreHitboxes,
    out: out,
  );
}