M
M
MishkaVNorky2018-10-30 15:10:25
Unity
MishkaVNorky, 2018-10-30 15:10:25

NavMesh, why are objects cut out of the mesh so badly?

Hello.
Old problem, is there a way to solve it?
Let's say there are two houses:
upload_2018-10-30_17-35-14-png.323968
When baking the grid, they should be cut out of it, but that doesn't work! Either the object is not cut out at all, or it is cut out partially.
upload_2018-10-30_17-38-23-png.323971
I tried different options:
- standard nav mesh
- external component (from gita) nav mesh (I tried both mesh baking and collider baking).
upload_2018-10-30_17-41-41-png.323974
As I understand it, this is because the bottom of the houses is cut out (for optimization, they cannot be entered).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
theinsaneone, 2018-11-06
@theinsaneone

As far as I know, NavMesh does not use a collider for baking, but the object's Mesh itself, so if one of the houses has no bottom, it ignores it. In this case, the only solution is to put a box the size of the house and with Static turned on. In principle, there is nothing wrong with this, sometimes it is even better - in the case of a complex mesh for a mesh. Given that it takes a fraction of a second, why not use this workaround?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question