mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: shot display
This commit is contained in:
1 parent
3438e51ef1
commit
7f8797a449
3 files changed
+113
-35
No files matched your search
@@ -75,14 +75,23 @@ export interface ShotLayerGap {
|
||||
export type ShotLayer = ShotLayerExternal | ShotLayerNonExternal | ShotLayerGap;
|
||||
|
||||
export type Shot = {
|
||||
status: 'penetration' | 'blocked' | 'ricochet' | 'splash';
|
||||
containsGaps: boolean;
|
||||
damage: number;
|
||||
point: Vector3;
|
||||
layersIn: ShotLayer[];
|
||||
layersOut?: ShotLayer[];
|
||||
|
||||
in: {
|
||||
cameraNormal: Vector3;
|
||||
status: ShotStatus;
|
||||
layers: ShotLayer[];
|
||||
};
|
||||
out?: {
|
||||
status: ShotStatus;
|
||||
layers: ShotLayer[];
|
||||
};
|
||||
};
|
||||
|
||||
export type ShotStatus = 'penetration' | 'blocked' | 'ricochet' | 'splash';
|
||||
|
||||
export type ArmorPiercingLayer =
|
||||
| {
|
||||
distance: number;
|
||||
|
||||
Reference in new issue
Block a user