Skip to content

fanDistances

fanDistances(origin, radius, rings, rays): Float32Array

Defined in: sdk/src/render/fogOfWar.ts:68

How far one ray from origin goes before a wall stops it, for rays rays evenly round the circle, none longer than radius. A wall that contains origin stops nothing, as for SightViewer: standing in a bush you see out of it.

SightPoint

number

readonly SightRing[]

number

Float32Array