Documentation
    Preparing search index...

    Interface SphereFieldVolume

    An axis-aligned sphere for volumeField.

    The weight is 1 at distance ≤ radius − falloff from center, smoothly ramps to 0 at radius, and is exactly 0 beyond it.

    interface SphereFieldVolume {
        center: Vector3;
        falloff?: number;
        radius: number;
        shape: "sphere";
    }
    Index
    center: Vector3

    Centre in world space, copied.

    falloff?: number

    Width of the inward edge fade in world units, default 0 (a hard edge). Finite and >= 0. A value larger than radius is legal and simply means the weight never reaches 1, peaking at the centre.

    radius: number

    Radius in world units. Finite and > 0.

    shape: "sphere"