summaryrefslogtreecommitdiffstats
path: root/modules/navigation/godot_navigation_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #62300 from smix8/navigation_map_force_update_4.xRémi Verschelde2022-06-241-0/+9
|\
| * Add NavigationServer map_force_update() functionsmix82022-06-231-0/+9
| | | | | | | | Adds map_force_update() function to NavigationServer. This function immediately flushes the Navigationserver command queue and recalculates all navigationmeshes and region connections for a specific map.
* | Add NavigationServer.region_owns_point() helper functionsmix82022-06-231-0/+10
| | | | | | | | Adds a helper function to check if a world space position is currently owned by a navigation region.
* | Add Navigation function to get all navigation mapssmix82022-06-221-0/+12
|/ | | | Added new function that returns all created navigation map RIDs from the NavigationServer. The function returns both 2D and 3D created navigation maps as technically there is no distinction between them.
* Streamline Navigation layer function names.smix82022-06-151-6/+6
| | | | Streamline Navigation layer function names.
* Add NavigationRegion costs for pathfindingsmix82022-06-061-0/+30
| | | | Add NavigationRegion costs for pathfinding.
* Make Navigation Agents and Obstacles respect parent process modesmix82022-05-171-2/+8
| | | | Temporarily removes agent from navigation map when parent node cannot process due to SceneTree pause and process_mode property. Normal process_mode does not work as other agents would still avoid the paused agents because they were still active on the navigation map and the rvo world. Also fixes potential crash when region_get_map or agent_get_map is called while no map is set.
* Add NavigationServer2D/3D API functions to find missing RID infosmix82022-05-121-0/+32
| | | | | | Utility functions for NavigationServer2D/3D to find missing RID information when working with Server API directly. e.g. from map to regions and agents, from agent or region to map, from region to map and agents and so on .... Requirement to work with NavigationServer API exklusive without SceneTree nodes and when juggling agents and regions between multiple navigation maps.
* Fix more issues found by cppcheck.bruvzg2022-04-201-36/+36
|
* Style: Apply clang-tidy to current code, add `readability-redundant-member-init`Rémi Verschelde2022-04-041-3/+1
|
* Style: Remove inconsistently used `@author` docstringsRémi Verschelde2022-01-041-4/+0
| | | | | | | | | | Each file in Godot has had multiple contributors who co-authored it over the years, and the information of who was the original person to create that file is not very relevant, especially when used so inconsistently. `git blame` is a much better way to know who initially authored or later modified a given chunk of code, and most IDEs now have good integration to show this information.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-4/+4
|
* Rename RID's `getornull()` to `get_or_null()`Hugo Locurcio2021-09-291-41/+41
|
* Optimize StringName usagereduz2021-07-181-1/+1
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Rename `GdNavigationServer` to `GodotNavigationServer`Rémi Verschelde2021-06-301-0/+547
And rename `gdnavigation` module to simply `navigation`.