The Recastnavigation path not straight

瀏覽次數:103 次
跳到第一則未讀訊息

Liao Akilar

未讀,
2020年4月29日 晚上10:14:502020/4/29
收件者:recastnavigation
I use dtNavMeshQuery findPath and findStraightPath, but this path is not Straight.
I use tilecache scene, and blue line use cell size is 10, can Straight,
but red line is cell size is 1, can't Straight, so what's the problem?
can help me? thanks.
RecastnavigationNotStraight.mp4

Niello

未讀,
2020年5月8日 上午10:39:072020/5/8
收件者:recastnavigation
This is because a straight path is built inside a path corridor, which consist only of path polys and knows nothing about their neighbours.
It is still strange because a distance heuristic must choose polys laying on the straight line in this case.
Does optimizePathVisibility() help?

четверг, 30 апреля 2020 г., 4:14:50 UTC+2 пользователь Liao Akilar написал:

Liao Akilar

未讀,
2020年5月10日 晚上9:48:272020/5/10
收件者:recastnavigation
thanks for your respond, I am trying.

Liao Akilar於 2020年4月30日星期四 UTC+8上午10時14分50秒寫道:
回覆所有人
回覆作者
轉寄
0 則新訊息