mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
feat: bounding boxes
This commit is contained in:
1 parent
9141f3d63f
commit
72a24b2770
5 files changed
+37
-7
No files matched your search
@@ -57,22 +57,22 @@ export function Characteristics() {
|
||||
{Math.round(engine.fire_chance * 100)}
|
||||
</Info>
|
||||
<Info name="View range" unit="m">
|
||||
TODO
|
||||
{turret.view_range}
|
||||
</Info>
|
||||
<Info name="Camouflage when still" unit="%">
|
||||
TODO
|
||||
{(tank.camouflage.still * 100).toFixed(2)}
|
||||
</Info>
|
||||
<Info indent name="Moving" unit="%">
|
||||
TODO
|
||||
{(tank.camouflage.moving * 100).toFixed(2)}
|
||||
</Info>
|
||||
<Info indent name="Shooting still" unit="%">
|
||||
TODO
|
||||
{(tank.camouflage.still * gun.camouflageLoss * 100).toFixed(2)}
|
||||
</Info>
|
||||
<Info indent name="Shooting on move" unit="%">
|
||||
TODO
|
||||
{(tank.camouflage.moving * gun.camouflageLoss * 100).toFixed(2)}
|
||||
</Info>
|
||||
<Info indent name="On fire" unit="%">
|
||||
TODO
|
||||
<Info indent name="On fire penalty" unit="%">
|
||||
{(tank.camouflage.onFire * 100).toFixed(2)}
|
||||
</Info>
|
||||
<Info indent name="Size" unit="m">
|
||||
TODO
|
||||
|
||||
@@ -8,6 +8,10 @@ export interface ModelArmor {
|
||||
spaced?: number[];
|
||||
}
|
||||
|
||||
interface BoundingBox {
|
||||
min: Vector3Tuple;
|
||||
max: Vector3Tuple;
|
||||
}
|
||||
interface ModelDefinition {
|
||||
armor: ModelArmor;
|
||||
trackThickness: number;
|
||||
@@ -15,6 +19,7 @@ interface ModelDefinition {
|
||||
hullOrigin: Vector3Tuple;
|
||||
turretRotation?: InitialTurretRotation;
|
||||
turrets: Record<number, TurretModelDefinition>;
|
||||
boundingBox: BoundingBox;
|
||||
}
|
||||
export interface InitialTurretRotation {
|
||||
yaw: number;
|
||||
@@ -22,6 +27,7 @@ export interface InitialTurretRotation {
|
||||
roll: number;
|
||||
}
|
||||
interface TurretModelDefinition {
|
||||
boundingBox: BoundingBox;
|
||||
armor: ModelArmor;
|
||||
model: number;
|
||||
gunOrigin: Vector3Tuple;
|
||||
|
||||
Reference in new issue
Block a user