PerceptionData
Defined in: ai/perception/components.ts:44
Properties
Section titled “Properties”dirX:
number
Defined in: ai/perception/components.ts:54
Unit direction observer→target.
dirY:
number
Defined in: ai/perception/components.ts:55
dirZ:
number
Defined in: ai/perception/components.ts:56
distance
Section titled “distance”distance:
number
Defined in: ai/perception/components.ts:48
Distance to the seen target (0 when none).
targetX
Section titled “targetX”targetX:
number
Defined in: ai/perception/components.ts:50
Seen target position in world pixels.
targetY
Section titled “targetY”targetY:
number
Defined in: ai/perception/components.ts:51
targetZ
Section titled “targetZ”targetZ:
number
Defined in: ai/perception/components.ts:52
visible
Section titled “visible”visible:
boolean
Defined in: ai/perception/components.ts:46
A target is currently seen.