MilosLukic / Godot-Navigation-Lite

Godot plug&play implementation of detour. It allows user to have multiple navigation meshes, fast cached obstacles, and realtime navmesh changes.
Other
132 stars 12 forks source link

cross NavMeshes find_path() #15

Open alan-man opened 3 years ago

alan-man commented 3 years ago

Hi, It looks like the find_path() is a method of the DetourNavigationMesh, and not the DetourNavigation. In Godot, a similar function of find_path() is get_simple_path(), which is a method of the navigation system. That algo is capable to find a path across multiple navigation meshes as long as they have at least one shared vertex. It means that the godot path finding algo is capable to switch between multiple meshes in order to find a global path across multiple meshes. @MilosLukic , is it possible to do cross navmeshes path finding with Godot Navigation Lite ?

Also, in "DetourNavigationMesh", there seems to be "input_meshes_storage", which seems to be an array of ArrayMesh. Any way to merge 2 "DetourNavigationMesh" ?

Thanks.