Documentation
    Preparing search index...

    Interface RadialFieldOptions

    Options of radialField.

    interface RadialFieldOptions {
        minDistance?: number;
    }
    Index
    minDistance?: number

    Distance floor in world units, default DEFAULT_RADIAL_MIN_DISTANCE. Must be finite and > 0.

    An inverse-square law diverges at the centre, and a particle that wanders within a millimetre of an attractor would be flung across the scene by a single step. The floor caps the magnitude at |strength| / minDistance² — 10⁴ · |strength| at the default, which is still enormous. Treat the default as "do not produce infinities", not as "this is stable": for an attractor a particle can actually reach, raise minDistance to roughly the visual radius of the attractor.