Chemistry · function

sourceRange

How far a source of a given power is worth considering, m.

Explained in Chemistry.

function sourceRange(power: number, minimumFlux: number): number
import { sourceRange } from '@driftengine/chemistry';

Parameters

ParameterTypeDescription
powernumber
minimumFluxnumber

In depth

From P / (4π r²) = q_min, so a big fire reaches further than a small one rather than every source sharing a constant radius. That is what stops a candle being tested against every parcel in a scene and a bonfire being cut off at the same distance.