Skip to content

PerceiverData

Defined in: ai/perception/components.ts:14

facingAxis: FacingAxis

Defined in: ai/perception/components.ts:20

Which of the entity’s own axes the cone points down — see FacingAxis.


fovDegrees: number

Defined in: ai/perception/components.ts:18

Field-of-view cone in degrees; 360 = omnidirectional.


losLayers: number

Defined in: ai/perception/components.ts:27

Physics layers the line-of-sight ray may hit (3D only; 0 = every layer). A ray cast from inside the observer’s own body hits it first and the check has to let that through, so a 3D scene keeps sight honest by casting only against the layers that actually block sight.


range: number

Defined in: ai/perception/components.ts:16

Sight range in world pixels.