We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d55b9b commit 827df68Copy full SHA for 827df68
src/bundles/robot_minigame/functions.ts
@@ -488,23 +488,6 @@ function robot_raycast_area(
488
: null;
489
}
490
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
-
508
/**
509
* Get the shortest distance between a ray and an area
510
*
0 commit comments