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 ab5fb70 commit 0174ba0Copy full SHA for 0174ba0
fission/src/mirabuf/ProtectedZoneSceneObject.ts
@@ -281,13 +281,14 @@ class ProtectedZoneSceneObject extends SceneObject {
281
}
282
break
283
284
- case ContactType.RED_ROBOT_INSIDE:
+ case ContactType.RED_ROBOT_INSIDE: {
285
// Penalize if the red robot is inside the zone when collision occurs
286
const redRobot = [collisionObjectBody1, collisionObjectBody2].find(robot => robot.alliance === "red")
287
if (redRobot && this.isRobotInside(redRobot)) {
288
shouldPenalize = true
289
290
291
+ }
292
293
case ContactType.BLUE_ROBOT_INSIDE: {
294
// Penalize if the blue robot is inside the zone when collision occurs
0 commit comments