mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: layering
This commit is contained in:
1 parent
c2e550e33d
commit
3a99205194
9 files changed
+180
-29
No files matched your search
@@ -67,24 +67,21 @@ interface TankopediaTemporary {
|
||||
shot?: Shot;
|
||||
}
|
||||
|
||||
type Shot = {
|
||||
export type Shot = {
|
||||
point: Vector3Tuple;
|
||||
surfaceNormal: Vector3Tuple;
|
||||
shellNormal: Vector3Tuple;
|
||||
thicknesses: ArmorPiercingLayer[];
|
||||
type: 'ricochet' | 'penetration' | 'block';
|
||||
};
|
||||
|
||||
export const SHOT_NAMES: Record<Shot['type'], string> = {
|
||||
ricochet: 'Ricochet',
|
||||
penetration: 'Penetration',
|
||||
block: 'Blocked',
|
||||
angle: number;
|
||||
};
|
||||
|
||||
export interface ArmorPiercingLayer {
|
||||
nominal: number;
|
||||
angled: number;
|
||||
ricochet: boolean;
|
||||
block: boolean;
|
||||
type: 'core' | 'spaced' | 'external';
|
||||
}
|
||||
|
||||
export const useTankopediaPersistent = create<TankopediaPersistent>()(
|
||||
|
||||
Reference in new issue
Block a user