Hello everyone!
I took a demo of a navigation mesh to be updated as you create an object inside the scene. I'd like to use this form of navigation for an action RPG I'm going to make.
The problem is that, when the object gets created before running the scene, everything works fine. But if I try to create the object while the game is running, it doesn't! And I use the exact same functionalities!
It throws an error which says
"E 0:00:04.250 make_polygons_from_outlines: NavigationPolygon: Convex partition failed!
<C++ Source> scene/2d/navigation_polygon.cpp:247 @ make_polygons_from_outlines()
<Stack Trace> Node2D.gd:62 @ set_obstacle()
Node2D.gd:30 @ _input()
"


Here is the demo project for you to fiddle around.
https://github.com/expolitum/AStar-Demo/tree/main/Astar%20Demo
You can download the github repository I shared here using this page and copying the previous link
https://minhaskamal.github.io/DownGit/#/home
Right Click - Create new object and 'try' to update the navigation mesh
Left Click - Go to target point doing AStar pathfinding
Thank you!
Expoli