mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: block he with red
This commit is contained in:
1 parent
3230afc117
commit
96ce3c7d41
1 file changed
+12
-2
@@ -176,7 +176,12 @@ export function SpacedArmorSceneComponent({
|
||||
thickness,
|
||||
point: intersection.point,
|
||||
surfaceNormal,
|
||||
status: blocked ? 'blocked' : 'penetration',
|
||||
status:
|
||||
shell.type === ShellType.HE
|
||||
? 'blocked'
|
||||
: blocked
|
||||
? 'blocked'
|
||||
: 'penetration',
|
||||
variant: layer.variant,
|
||||
});
|
||||
} else {
|
||||
@@ -221,7 +226,12 @@ export function SpacedArmorSceneComponent({
|
||||
thicknessAngled: finalThickness,
|
||||
point: intersection.point,
|
||||
surfaceNormal: intersection.face!.normal,
|
||||
status: blocked ? 'blocked' : 'penetration',
|
||||
status:
|
||||
shell.type === ShellType.HE
|
||||
? 'blocked'
|
||||
: blocked
|
||||
? 'blocked'
|
||||
: 'penetration',
|
||||
angle,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user