mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +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,
|
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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user