Change MaxWeight to respect atmospheric density

This commit is contained in:
Neshura 2024-05-24 08:23:35 +00:00
parent 0b5637ca38
commit 90085dd87a

View file

@ -66,7 +66,7 @@
}
})
let maxWeight: number = $derived(ship.getTotalMaxThrust() / (gravity * 9.81))
let maxWeight: number = $derived(ship.getTotalThrust(atmosphericDensity) / (gravity * 9.81))
let maxVehicleWeight: number = $derived(maxWeight - ship.getTotalVolume(inventoryMultiplier) * material.density)