Jump to content

Navmesh + Scrappable Objects


FiftyTifty

Recommended Posts

'Ullo again lads, got a wee question on how to approach this problem with the navmesh.

 

 

 

http://i.imgur.com/e77mOdG.png

 

 

 

As ya can see in the above image, the navmesh stops abruptly at the steel crate. However, in this workshop, you can scrap it. Problem is, when you do, the navmesh doesn't magically repair itself and extend into the now reachable area.

 

What's the deal with this? Do I just add more navmesh vertices underneath the objects, and the AI will just navigate around it? Or is it more complex than that?

Link to comment
Share on other sites

Right, it turns out that there is a special type of navmesh; precuts. These are disabled by default, and are generated by intersecting scrappable objects with the navmesh. When the scrappable object is scrapped, the precut is enabled. They're coloured bright pink in the editor.

 

 

 

http://i.imgur.com/O9ruZR5.png

 

 

 

Trouble is, I can only seem to generate these precuts for the whole cell; I can't figure out how to calculate the precuts for a select few navmesh triangles.

 

To generate the precuts for the whole cell, you:

 

1. Click the "Navmesh" tab

2. Click "Precut All Scrappables"

 

Which is waaaaay overzealous for what I want to do at the moment, especially since I'm editing a pre-existing cell. Need to do this stuff incrementally.

 

Anybody got any ideas?

Link to comment
Share on other sites

Really useful stuff right here! You should go and edit the wiki with this find! It is sure to help a lot of people!

Done. First time making a wiki page, so it's probably pretty bad, but I think I managed to convey all the needed info. It's actually a really simple concept, but it just seems daunting at first.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...