PerceptionData
此内容尚不支持你的语言。
Defined in: ai/perception/components.ts:30
Properties
Section titled “Properties”dirX:
number
Defined in: ai/perception/components.ts:39
Unit direction observer→target.
dirY:
number
Defined in: ai/perception/components.ts:40
distance
Section titled “distance”distance:
number
Defined in: ai/perception/components.ts:34
Distance to the seen target (0 when none).
targetX
Section titled “targetX”targetX:
number
Defined in: ai/perception/components.ts:36
Seen target position in world pixels.
targetY
Section titled “targetY”targetY:
number
Defined in: ai/perception/components.ts:37
visible
Section titled “visible”visible:
boolean
Defined in: ai/perception/components.ts:32
A target is currently seen.