anedumgottil / VR-Mazmorra

Procedurally generated VR Dungeon
Apache License 2.0
1 stars 0 forks source link

NavMesh Woes #29

Closed apodgo2 closed 6 years ago

apodgo2 commented 6 years ago

We tried to get the NavMesh working for last demo but there was not enough time. We'd like to get it working to some degree for this demo at least.

We'll be getting the Drone to navigate the NavMesh by making it a NavMesh agent. See #9.

We'll be generating the Navigation Mesh for the entire map at runtime using the MapGenerator, after the Map has been loaded and created. This means we'll have to have #15 done and the walls assigned to a special Unity Tag that will allow them to be considered for our NavMesh.

Every time we add a GridObject, we'll need to update our NavMesh.

apodgo2 commented 6 years ago

This is done as of d63b3db4678d70bffe39cf37211a442572df6448

NavMesh is generated and properly walkable, and it updates every time the Grid is modified. However, it seems to prefer building the NavMesh on the ceiling, so I rolled back some previous hotfixes we used to get it running for the demo and I'm fixing it correctly this time after commit 628b305c14fe7ad6c5c002c30e83fa344281c2af so be prepared for some updates to the NavMesh generation.

Anyways, it basically works as of now so I'll be closing this.