mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-24 06:34:18 +01:00
fix: use two calibers rule on spaced armor
This commit is contained in:
1 parent
2e888525c6
commit
b290c88c1d
1 file changed
+4
-2
@@ -65,8 +65,10 @@ void main() {
|
|||||||
|
|
||||||
if (isUnderSpacedArmor) {
|
if (isUnderSpacedArmor) {
|
||||||
// spaced armor on the other hand, does care about angle
|
// spaced armor on the other hand, does care about angle
|
||||||
float spacedArmorThickness = spacedArmorNominalThickness / cos(spacedArmorAngle);
|
bool spacedArmorTwoCalibersRule = caliber > 2.0 * spacedArmorNominalThickness;
|
||||||
remainingPenetration -= spacedArmorThickness;
|
float finalSpacedArmorNormalization = spacedArmorTwoCalibersRule ? (normalization * 1.4 * caliber) / (2.0 * spacedArmorNominalThickness) : normalization;
|
||||||
|
float finalSpacedArmorThickness = spacedArmorNominalThickness / cos(spacedArmorAngle - finalSpacedArmorNormalization);
|
||||||
|
remainingPenetration -= finalSpacedArmorThickness;
|
||||||
}
|
}
|
||||||
remainingPenetration = max(remainingPenetration, 0.0);
|
remainingPenetration = max(remainingPenetration, 0.0);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user