feat: bounding boxes

This commit is contained in:
TrèsAbhi committed 2024-01-28 20:45:50 -06:00
1 parent 9141f3d63f
commit 72a24b2770
5 files changed
+37 -7

No files matched your search

+11
View File
@@ -1,4 +1,5 @@
import { readdir } from 'fs/promises';
import { Vector3Tuple } from 'three';
import { NATION_IDS } from '../../src/constants/nations';
import { readBase64DVPL } from '../../src/core/blitz/readBase64DVPL';
import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL';
@@ -14,6 +15,16 @@ export interface TankParameters {
bigIconPath: string;
blitzModelPath: string;
};
collision: {
[key: string]: {
points: Vector3Tuple;
bbox: {
min: Vector3Tuple;
max: Vector3Tuple;
};
averageThickness?: Record<string, number>;
};
};
}
export async function buildTankIcons(production: boolean) {