Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | g5fighter |
Hello, i’m making a game in which I use the NavigationPolygonInstance.
In my game I make obstacles by code, and it works well, but when I use the line of code:
get_tree().reload_current_scene()
it seems like the last NavigationPolygonInstance it isn’t restarted and saves the last shape, after making the obstacles and throw this error:
E 0:00:04:0071 NavigationPolygon: Convex partition failed!
scene/2d/navigation_polygon.cpp:260 @ make_polygons_from_outlines()
Navigation2D.gd:56 @ _obstacle()
CajaDeRecursos.gd:32 @ make_obstacle()
mainScript.gd:33 @ _ready()
I don’t have this error if I go to another scene and then I return to this.
Here is the project:Link with project
PD: the project is very spanglish