fix: block he with red

This commit is contained in:
TrèsAbhi committed 2024-05-27 21:01:07 -05:00
1 parent 3230afc117
commit 96ce3c7d41
1 file changed
+12 -2
@@ -176,7 +176,12 @@ export function SpacedArmorSceneComponent({
thickness, thickness,
point: intersection.point, point: intersection.point,
surfaceNormal, surfaceNormal,
status: blocked ? 'blocked' : 'penetration', status:
shell.type === ShellType.HE
? 'blocked'
: blocked
? 'blocked'
: 'penetration',
variant: layer.variant, variant: layer.variant,
}); });
} else { } else {
@@ -221,7 +226,12 @@ export function SpacedArmorSceneComponent({
thicknessAngled: finalThickness, thicknessAngled: finalThickness,
point: intersection.point, point: intersection.point,
surfaceNormal: intersection.face!.normal, surfaceNormal: intersection.face!.normal,
status: blocked ? 'blocked' : 'penetration', status:
shell.type === ShellType.HE
? 'blocked'
: blocked
? 'blocked'
: 'penetration',
angle, angle,
}); });
} }