function nozzleFiring
thrusters.ts:134
How hard each nozzle fires for a demand, 0..1, written into out.
The projection: a valve's thrust against the linear demand, plus its torque direction against the angular one, clamped. A valve whose thrust opposes what was asked for stays shut; one that serves both — a bow jet pushing the nose down while the ship is also asked to translate down — fires harder than either alone, which is what an allocator would do with it too.
out is written in place because this runs per frame for every nozzle on
the hull, and the array it fills is the one the GPU attribute is uploaded
from.
- allocationNozzleAllocation
- Undocumented
- demandThrustDemand
- Undocumented
- outFloat32Array
- Undocumented
Returnsvoid