Skip to content

Commit 827df68

Browse files
committed
Remove unused raycast_multi()
1 parent 9d55b9b commit 827df68

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/bundles/robot_minigame/functions.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -488,23 +488,6 @@ function robot_raycast_area(
488488
: null;
489489
}
490490

491-
/**
492-
* Check which areas fall along a ray
493-
*
494-
* @param ray to cast
495-
* @param areas to check
496-
* @returns collisions between the ray and areas
497-
*/
498-
function raycast_multi(
499-
ray: Ray,
500-
areas: Area[]
501-
) : Collision[] {
502-
return areas
503-
.map(area => raycast(ray, area)) // Raycast each area
504-
.filter(col => col !== null) // Remove null collisions
505-
.sort((a, b) => a.distance - b.distance); // Sort by distance
506-
}
507-
508491
/**
509492
* Get the shortest distance between a ray and an area
510493
*

0 commit comments

Comments
 (0)