feat: ricochet repenetration

This commit is contained in:
TrèsAbhi committed 2024-02-06 17:57:20 -06:00
1 parent 8bb5032ee4
commit 901f1bfe42
8 files changed
+163 -33

No files matched your search

+7 -2
View File
@@ -69,14 +69,19 @@ interface TankopediaTemporary {
shot?: Shot;
}
export type Shot = {
export interface Shot {
point: Vector3Tuple;
surfaceNormal: Vector3Tuple;
shellNormal: Vector3Tuple;
thicknesses: ArmorPiercingLayer[];
type: 'ricochet' | 'penetration' | 'block';
angle: number;
};
ricochet?: {
distance: number;
point: Vector3Tuple;
penetration: boolean;
};
}
export type ArmorPiercingLayer =
| {