
joywayerandClaude Opus 4.8
4ecf949d83
fix(enemy): 目标点吸附改用距离自适应搜索,修复稍离地路点吸附失败
之前 TryGetStandablePointNear 用固定 2m 搜索半径(实为 ±1m AABB)+ agent 过滤映射,
导致摆放在离地面 >1m 的路点(如 wp y=3.16 而地面段 y=2.00)映射失败、误报"超出搜索半径"。
改为与 PB2d 自身 UpdatePath 映射目标完全一致:搜索距离=agent 到目标距离(+0.1),
用不带 agent 过滤的 TryMapPoint(就近段几何映射,可达性交给 allowCloseEnoughPath 寻路阶段)。
只要图上有段就一定吸附得到最近点。移除 EnemyNavAgent._goalMapSearchRadius 固定半径字段。
Play 实测:两个路点 ResolveStandablePoint 均 ok=True((-20.90,3.16)->(-20.90,2.00)),
CanReach=True,敌人实际走到 x=-20.75(目标 -20.90)后停,无 EnemyLocomotion 报警。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 10:10:35 +08:00
..
2026-07-21 16:18:07 +08:00
2026-07-20 13:11:28 +08:00
2026-06-09 15:56:44 +08:00
2026-06-08 16:05:00 +08:00
2026-07-23 10:10:35 +08:00
2026-06-02 23:18:20 +08:00
2026-05-23 19:10:29 +08:00
2026-06-11 16:30:56 +08:00
2026-05-23 19:10:29 +08:00
2026-07-03 14:58:52 +08:00
2026-07-03 14:58:52 +08:00
2026-05-15 14:47:24 +08:00
2026-06-09 15:56:44 +08:00
2026-07-21 16:18:07 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-26 13:04:38 +08:00
2026-05-15 14:47:24 +08:00
2026-07-10 16:27:02 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-07-10 13:38:27 +08:00
2026-05-23 19:10:29 +08:00
2026-06-12 11:48:37 +08:00
2026-05-15 14:47:24 +08:00
2026-05-29 17:01:59 +08:00
2026-05-29 17:01:59 +08:00
2026-07-22 12:45:01 +08:00
2026-05-15 14:47:24 +08:00
2026-06-02 16:10:44 +08:00
2026-06-02 16:10:44 +08:00
2026-06-02 16:10:44 +08:00
2026-05-15 14:47:24 +08:00
2026-07-03 15:10:55 +08:00
2026-05-15 14:47:24 +08:00
2026-05-23 21:23:09 +08:00
2026-05-23 21:23:09 +08:00
2026-07-10 13:43:51 +08:00
2026-05-15 14:47:24 +08:00
2026-07-10 14:05:56 +08:00
2026-05-15 14:47:24 +08:00
2026-06-11 16:31:55 +08:00
2026-05-15 14:47:24 +08:00
2026-05-23 19:10:29 +08:00
2026-05-23 19:10:29 +08:00
2026-07-22 15:52:18 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-23 19:10:29 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-23 19:10:29 +08:00