#Bake or NavigationObstacle

2 messages · Page 1 of 1 (latest)

barren flicker
#

Hey, I'm looking for the best practice to handle my navigationRegion. I have an "island" that have a NavigationRegion baked at runtime (it's procedurally generated). I also spawn tree that can be chopped and I can craft structures. Whats the best practice here to update my NavigationRegion ? Should I use a NavigationObstacle on my tree and structure, or only on my tree and rebake when I craft a structure ? or rebake for both ?

crisp thistle
#

It depends, the trade-off being how often are you likely to need to bake it versus punching holes in the mesh (https://docs.godotengine.org/en/stable/classes/class_navigationpolygon.html#class-navigationpolygon). Adding obstacles will need baking, I believe but should be the simpler approach. Try it, see how it behaves. You might not need to build immediately, for example, really depending on the flow of your game