summaryrefslogtreecommitdiffstats
path: root/scene/2d/navigation_region_2d.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@87318a2fb7fffeb72adca934e31915be077c3d1fSpartan3222024-11-061-2/+2
|\
| * Compile certain `CanvasItem._edit_*()` functions with `DEBUG_ENABLED`Michael Alexsander2024-11-021-2/+2
| |
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Improve NavigationRegion2D debug performancesmix82024-05-281-0/+6
| | | | Improves NavigationRegion2D debug performance by replacing the canvas polygon and line commands with a static mesh.
* Merge pull request #90747 from smix8/remove_constrain_avoidanceRémi Verschelde2024-04-171-15/+0
|\ | | | | | | Remove experimental `constrain_avoidance` from `NavigationRegion2D`
| * Remove experimental constrain_avoidance from NavigationRegion2Dsmix82024-04-161-15/+0
| | | | | | | | Removes experimental constrain_avoidance feature from NavigationRegion2D.
* | Move NavigationMeshSourceGeometryData(2D/3D) to the 2D/3D subfoldersAaron Franke2024-04-151-1/+1
|/
* Add debug visual for NavigationRegion2D bake rectsmix82024-02-231-0/+1
| | | | Adds debug visual for NavigationRegion2D bake rect.
* Revert "Update Node::get_configuration_warnings signature"Rémi Verschelde2024-02-171-1/+1
| | | | This reverts commit d3852deaa450d77edb30df2bb1c77bd7bc45befc.
* Fix NavigationRegion errors from signal changessmix82024-02-101-0/+1
| | | | Fixes NavigationRegion errors from signal changes.
* Update Node::get_configuration_warnings signatureRedMser2024-02-081-1/+1
|
* Expose `is_baking` method in navigation servers and region nodes.Pawel Lampe2024-02-051-0/+1
|
* Fix missing NavigationRegion property updates in constructorsmix82023-12-041-0/+1
| | | | Fixes missing NavigationRegion property updates in constructor.
* Add 2D navigation mesh bakingsmix82023-09-251-0/+3
| | | | Adds 2D navigation mesh baking.
* Add NavigationRegion function to change navigation mapsmix82023-06-151-0/+7
| | | | Adds NavigationRegion function to change navigation map.
* Refactor NavigationRegion internalssmix82023-06-151-1/+7
| | | | Refactors NavigationRegion internals.
* Make navigation mesh edge connections optionalsmix82023-05-111-0/+5
| | | | Makes navigation mesh edge connections optional.
* Prevent unnecessary navigation map synchronizationssmix82023-05-111-0/+2
| | | | Prevents unnecessary navigation map synchronizations triggered by redundant calls to setters of e.g. region, link or map properties.
* Rework Navigation Avoidancesmix82023-05-101-0/+17
| | | | Rework Navigation Avoidance.
* 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".
* Fix typo and ensure backwards compatibility for changed property namesJosh Jones2022-12-201-0/+5
| | | | | | | | | | | | | Changes to the name of the `navmesh` and `navpoly` properties on `NavigationRegion` caused navigation data to be lost on load. This PR creates uses `_set`/`_get` to handle compatibility with the older names on load, preserving the data. Also fixes a typo on `get_vertices_per_polygon` in `NavigationMesh`, and renames the property to remove the `polygon_` prefix which doesn't match the setter/getter. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Fix Navigation API abbreviations inconsistencysmix82022-12-171-3/+3
| | | | Schema for navigation to name user facing API with "navigation" without abbreviation and e.g. NavigationServer internals with abbr "nav".
* Move NavigationPolygon to dedicated resource filesmix82022-12-171-59/+1
| | | | Moves NavigationPolygon resource class from NavigationRegion2D file to a dedicated file in resource folder.
* Improve consistancy of NavigationRegion settersJosh Jones2022-09-211-2/+2
|
* Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-1/+1
|
* Add navigation layer bitmask helper functionssmix82022-06-191-0/+3
| | | | Adds helper functions to work with the navigation layer bitmask.
* Streamline Navigation layer function names.smix82022-06-151-2/+2
| | | | Streamline Navigation layer function names.
* Add NavigationRegion costs for pathfindingsmix82022-06-061-0/+9
| | | | Add NavigationRegion costs for pathfinding.
* Add get_region_rid() NavigationRegion2D and NavigationRegion3Dsmix82022-04-301-0/+2
| | | | Add get_region_rid() to NavigationRegion2D and NavigationRegion3D
* Add array element type to `_get_polygons` and `_get_outlines`Raul Santos2022-02-081-2/+2
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* 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.
* Allow Navigation to be more flexibleGilles Roudière2021-03-151-0/+1
|
* Implement Navigation layersGilles Roudière2021-03-101-0/+3
|
* Remove Navigation2D/3D nodes, and move the navigation map to the world resourceGilles Roudière2021-03-101-3/+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 🎆
* Add override keywords.Marcel Admiraal2020-07-101-3/+3
|
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-2/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-141-5/+5
| | | | | | | | | | 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.
* Fixes type of array in _set_outlines functionqarmin2020-05-041-1/+1
|
* Add proper type to most public API uses of ArrayJuan Linietsky2020-04-211-2/+2
|
* Rename more 2D and 3D nodes to follow conventionRémi Verschelde2020-03-271-0/+130
Rename editor plugins to match the new node names.