interface PointSourcePolygonConfig {
    angle?: number;
    boundaryShapes?: (Rectangle | Polygon | Circle)[];
    boundingBox?: Rectangle;
    debug?: boolean;
    density?: number;
    hasLimitedAngle?: boolean;
    hasLimitedRadius?: boolean;
    radius?: number;
    rotation?: number;
    source?: any;
    type: PointSourcePolygonType;
    useThreshold?: boolean;
    wallDirectionMode?: number;
}

Properties

angle?: number

The angle of emission, if limited

boundaryShapes?: (Rectangle | Polygon | Circle)[]

Limiting polygon boundary shapes

boundingBox?: Rectangle

The computed bounding box for the polygon

debug?: boolean

Display debugging visualization and logging for the polygon

density?: number

The desired density of padding rays, a number per PI

hasLimitedAngle?: boolean

Does this polygon have a limited angle?

hasLimitedRadius?: boolean

Does this polygon have a limited radius?

radius?: number

A limited radius of the resulting polygon

rotation?: number

The direction of facing, required if the angle is limited

source?: any

The object (if any) that spawned this polygon.

The type of polygon being computed

useThreshold?: boolean

Compute the polygon with threshold wall constraints applied

wallDirectionMode?: number

Customize how wall direction of one-way walls is applied