admin管理员组文章数量:1123432
My baked navmesh surface is avoiding a large space from the colliders.
For example, on picture above, I need my NPC to stays idle at the pink ball position, but Navmesh surface is not reaching that area.
Is there any way to change that offset distance for Navmesh surface?
My baked navmesh surface is avoiding a large space from the colliders.
For example, on picture above, I need my NPC to stays idle at the pink ball position, but Navmesh surface is not reaching that area.
Is there any way to change that offset distance for Navmesh surface?
Share Improve this question edited 13 hours ago anderlaini asked 13 hours ago anderlainianderlaini 1,8093 gold badges28 silver badges48 bronze badges 2 |1 Answer
Reset to default 2Go to the Navigation Window (Window > AI > Navigation.) and adjust your agent's Radius
property according to your needs
Define how close the agent center can get to a wall or a ledge.
Alternatively you can also adjust this for each individual agent via the NavMeshAgent component
From About About NavMesh agents:
The height and radius of the cylinder are specified in the Navigation window and the NavMeshAgent component properties of the individual agents.
- Navigation window settings describe how all the NavMesh Agents collide and avoid static world geometry. To keep memory on budget and CPU load at a reasonable level, you can only specify one size in the bake settings.
- NavMesh Agent component properties values describe how the agent collides with moving obstacles and other agents.
Typically you set the size of the agent with the same values in both places. However, you might, give a heavy soldier a larger radius, so that other agents leave more space around your soldier. Otherwise, your soldier avoids the environment in the same manner as the other agents.
本文标签: unitynavmeshhow to reduce space from collidersStack Overflow
版权声明:本文标题:unity - navmesh - how to reduce space from colliders - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736565853a1944702.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
Radius
accordingly? By default it is0.5
which about matches your posted image ... – derHugo Commented 13 hours ago