跳转到内容

SenseResult

此内容尚不支持你的语言。

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

dir: Vec3

Defined in: ai/perception/sense.ts:26

Unit direction observer→target, or zero when not visible.


distance: number

Defined in: ai/perception/sense.ts:24

Distance to the target (always set, even when not visible).


visible: boolean

Defined in: ai/perception/sense.ts:22

Target is within range, inside the cone, and not occluded.