Reference · Rockets, variants, parts and the fit check
performanceOffunction
What a ship can do: from the mass of its modules and the thrust of its main engines. fuelFraction is how much of the propellant is spent on the voyage (all of it by default).
Import it
import { performanceOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function performanceOf(ship: ShipList, fuelFraction?: number): Performance
Parameters
| Name | Type | Description |
|---|---|---|
ship | ShipList | The ship's list of modules. |
fuelFraction (optional) | number | The part of the propellant used. |
Returns
Performance
Thrust, acceleration, exhaust speed, the speeds its fuel allows and its burn time.
Examples
import { performanceOf, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
const p = performanceOf(SAMPLE_SHIPS.hauler);
console.log(p.accelerationFull.toFixed(3), "g", p.cruise.toFixed(2), "c");2.606 g 0.01 cWhat it prints (run when this page was built)