summaryrefslogtreecommitdiffstats
path: root/scene/3d/navigation_agent_3d.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix physics tick counterRicardo Buring2024-07-071-2/+0
| | | | | | The counter is now incremented at the start of a physics tick rather than at the end. Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* Add navigation path simplificationsmix82024-04-111-0/+8
| | | | Adds navigation path simplification for NavigationServer and NavigationAgent.
* Revert "Update Node::get_configuration_warnings signature"Rémi Verschelde2024-02-171-1/+1
| | | | This reverts commit d3852deaa450d77edb30df2bb1c77bd7bc45befc.
* Update Node::get_configuration_warnings signatureRedMser2024-02-081-1/+1
|
* Make target_desired_distance affect the navigation of NavigationAgent2D/3DErshn2023-11-291-2/+15
| | | | When the target is reachable, stop the navigation only when the target is reached.
* Fix NavigationAgent3D stored y-axis velocity and make it optionalsmix82023-10-211-0/+5
| | | | Fixes NavigationAgent3D stored y-axis velocity and makes it optional.
* Add agent pause mode to NavigationServersmix82023-06-181-1/+0
| | | | Adds agent pause mode to NavigationServer.
* Fix various typos with codespellRémi Verschelde2023-06-161-1/+1
| | | | And ignore some false positives introduced by recent versions of codespell.
* Rework Navigation Avoidancesmix82023-05-101-54/+82
| | | | Rework Navigation Avoidance.
* Expose NavigationAgent path postprocessing and pathfinding algorithm optionssmix82023-03-251-0/+12
| | | | Exposes the path postprocessing and pathfinding algorithm options of the NavigationAgent internal NavigationPathQueryParameters object.
* Tweak NavigationAgent3D defaultssmix82023-02-161-3/+3
| | | | Tweaks default values for NavigationAgent3D to work better out of the box within a new 3D project.
* Fix NavigationAgent debug functions bindings in release buildssmix82023-02-081-6/+6
| | | | Fixes that certain NavigationAgent debug functions bindings were not available in release builds.
* Improve consistency of NavigationAgent settersJosh Jones2023-02-021-7/+6
|
* Add NavigationAgent Path Debug Visualizationsmix82023-01-311-0/+30
| | | | Adds path debug visuals for NavigationAgent2D, NavigationAgent3D and NavigationServer.
* Rename Navigation uses of 'location' to 'position'smix82023-01-261-5/+5
| | | | Contrary to the entire rest of the engine NavigationAgent's and NavigationLinks decided to deal with locations instead of positions.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Merge pull request #69688 from smix8/navagent_stop_origin_automove_4.xRémi Verschelde2022-12-211-0/+1
|\ | | | | Stop NavigationAgents without a target from moving to world origin
| * Stop NavigationAgents without a target from moving to world originsmix82022-12-061-0/+1
| | | | | | | | Stops NavigationAgents moving to the world origin without anyone telling them to do so.
* | Add support for emitting a signal when entering a NavLinkJosh Jones2022-12-171-4/+14
| |
* | Fix Navigation API abbreviations inconsistencysmix82022-12-171-4/+4
|/ | | | Schema for navigation to name user facing API with "navigation" without abbreviation and e.g. NavigationServer internals with abbr "nav".
* Update NavigationAgent to use query_pathJosh Jones2022-09-281-4/+5
| | | | This paves the way for having agents respond to link traversal.
* Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-1/+1
|
* Rename Navigation's `neighbor_dist` to `neightbor_distance`Micky2022-08-131-4/+4
| | | | | | | | | | NavigationAgent2D/3D.`neighbor_dist` -> `neighbor_distance` (also affects setters and getters) NavigationServer2D/3D.`agent_set_neighbor_dist()` -> `agent_set_neighbor_distance()` Also changes their parameters' names. Doesn't affect "Agent.neighborDist_" in Agent.h
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-3/+3
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Merge pull request #62214 from smix8/navigation_layer_bitmask_helpers_4.xRémi Verschelde2022-06-201-0/+3
|\
| * Add navigation layer bitmask helper functionssmix82022-06-191-0/+3
| | | | | | | | Adds helper functions to work with the navigation layer bitmask.
* | Add NavigationAgent desired path distancesmix82022-06-181-0/+6
|/ | | | Add NavigationAgent desired path distance
* Streamline Navigation layer function names.smix82022-06-151-3/+3
| | | | Streamline Navigation layer function names.
* Add NavigationAgent set_navigation_map() functionsmix82022-06-141-0/+4
| | | | Add NavigationAgent set_navigation_map() and get_navigation_map() function.
* Fix NavigationAgent reparent issuessmix82022-06-011-0/+2
| | | | Fix NavigationAgent reparent issues
* Process NavigationAgent2D/3D avoidance on demand onlysmix82022-05-201-0/+4
| | | | | Changes NavigationAgent avoidance callback to a toggle that is disabled by default. Also fixes a few missing descriptions / wrong warnings.
* Make Navigation Agents and Obstacles respect parent process modesmix82022-05-171-0/+1
| | | | 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.
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-8/+8
| | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Expose navigable layers for NavigationAgent2D/3DBARTEK-PC\Bartek2022-03-201-0/+6
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix some unnecessary includesAaron Franke2021-08-131-1/+0
|
* Fix NavigationAgent3D not emitting "target_reached" Signalsmix82021-04-271-0/+1
| | | | Fix NavigationAgent3D not emitting "target_reached" Signal when reaching pathfinding target.
* Use Array for node configuration warningsNathan Franke2021-04-111-1/+1
| | | | Previously, the warnings were passed as a string and delimitation of which were hard coded at each implementation.
* Remove Navigation2D/3D nodes, and move the navigation map to the world resourceGilles Roudière2021-03-101-10/+0
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Add override keywords.Marcel Admiraal2020-07-101-1/+1
|
* Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-141-8/+8
| | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* Renamed 2D and 3D nodes to make their types explicitJuan Linietsky2020-03-271-0/+162
Fixes #30736.