mwg API
    Preparing search index...

    Interface ParticleSpawnArea

    Where in the emitter's local space a particle is born. Without one every particle starts at the emitter's origin, which is right for a hit spark and wrong for anything with an extent: the width of a forge, the mouth of a flame column, rain across a room.

    A rect spreads births uniformly across width x height; an ellipse spreads them uniformly inside it (the square-root of the radius, so they do not bunch at the centre). Both are centred on the emitter and move with it, since this is local space.

    interface ParticleSpawnArea {
        height?: number;
        shape: "rect" | "ellipse";
        width: number;
    }
    Index
    height?: number

    full height; defaults to width, so a square rectangle or a circle

    shape: "rect" | "ellipse"
    width: number

    full width of the area, in world units