mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: ricochet penetration reporation of external modules
This commit is contained in:
1 parent
969c9a903e
commit
b609fcbac7
1 file changed
+9
@@ -288,6 +288,15 @@ export function SpacedArmorSceneComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
!allowRicochet &&
|
||||||
|
!noDuplicateIntersections.some((intersection) => {
|
||||||
|
intersection.object.userData.type === ArmorType.Core;
|
||||||
|
})
|
||||||
|
) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
let remainingPenetration = remainingPenetrationInput ?? penetration;
|
let remainingPenetration = remainingPenetrationInput ?? penetration;
|
||||||
let index = 0;
|
let index = 0;
|
||||||
for (const intersection of noDuplicateIntersections) {
|
for (const intersection of noDuplicateIntersections) {
|
||||||
|
|||||||
Reference in new issue
Block a user