5121b0d56b
Added Toplevel property to CanvasItem. Also removed 2 extremely old compatibility methods.
2023-09-06 20:02:14 +02:00
11d47d8fdc
Simplifications to NavigationAgent and NavigationAgent2D.
2023-09-05 11:54:49 +02:00
43c11fcdf5
Backported from godot4: Fix typo and ensure backwards compatibility for changed property names
...
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.
- DarkKilauea, akien-mga
0572346985
2023-09-05 09:13:54 +02:00
6f3b1fac57
Simplify some logic in NavigationAgent2D.
2023-09-05 09:01:44 +02:00
397a9e9bcd
Backported from godot4: Fix NavigationAgent continues avoidance velocity
...
Fixes NavigationAgent continues avoidance velocity.
- smix8
c912df9d05
2023-09-05 08:01:57 +02:00
7b52f0200e
Backported from godot4: Fix NavigationObstacle2D debug position
...
Fixes NavigationObstacle2D debug position.
- smix8
2512157294
2023-09-04 21:21:56 +02:00
7001325758
Backported form godot4: Add NavigationRegion function to change navigation map
...
Adds NavigationRegion function to change navigation map.
- smix8
84647ab09e
2023-09-04 21:17:49 +02:00
a222159442
Backported from godot4: Add NavigationServer API to enable regions and links
...
Adds NavigationServer API to enable regions and links.
- smix8
69fad39cf5
2023-09-04 20:22:28 +02:00
b37e0e6a4e
Backported from godot4: Update navigation obstacle API
...
Updates navigation obstacle API.
- smix8
c1fc331b88
2023-09-04 19:55:32 +02:00
aeb4d3fbe2
Backported from godot4: Add agent pause mode to NavigationServer
...
Adds agent pause mode to NavigationServer.
- smix8
https://github.com/godotengine/godot/commit/ae9dd47d0c1c237d0733439862aa5ff651dcac2
2023-09-04 19:04:29 +02:00
c326722a65
Backported from godot4: Allow negative NavigationAgent2D path debug line_width for thin lines
...
Allows the line_width for NavigationAgent2D path debug to go negativ for thin line rendering.
- smix8
f6a10c0565
2023-09-04 18:03:12 +02:00
e2fd645a42
Ported from godot4: Fix NavigationAgent position not always updating
...
Fixes NavigationAgent position not always updating.
- smix8
34bc410fb4
2023-09-04 17:38:32 +02:00
8485b37515
Ported from godot4: Fix Navigation API abbreviations inconsistency
...
Schema for navigation to name user facing API with "navigation" without abbreviation and e.g. NavigationServer internals with abbr "nav".
- smix8
34e7628f5f
2023-09-04 17:09:39 +02:00
b4dbd26415
Backported from godot4: Expose NavigationAgent path postprocessing and pathfinding algorithm options
...
Exposes the path postprocessing and pathfinding algorithm options of the NavigationAgent internal NavigationPathQueryParameters object.
- smix8
6e324bb341
2023-09-03 10:12:41 +02:00
a516cf2e1b
Backported from godot4: Tweak NavigationAgent3D defaults
...
Tweaks default values for NavigationAgent3D to work better out of the box within a new 3D project.
- smix8
8be4af38e4
2023-09-03 09:43:32 +02:00
935ed3c807
Backported from godot4: Tweak NavigationAgent2D defaults
...
Tweaks default values for NavigationAgent2D to work better out of the box within a new 2D project using default resolution.
- smix8
594ffd2200
2023-09-03 09:14:50 +02:00
d1d8f8505e
Backported from godot4: Strip name prefix of navigation agent debug properties in the inspector.
...
- timothyqiu
65223e98de
2023-09-02 12:56:02 +02:00
2dc300a0fc
Backported from godot4: Stops NavigationAgents moving to the world origin without anyone telling them to do so.
...
-smix8
860379fc16
2023-09-02 12:47:13 +02:00
61bf4df2f4
Fix NavigationObstacle2D::set_navigation.
2023-09-02 12:31:55 +02:00
4b3a27f415
Bind get_navigation_map and set_navigation_map in NavigationObstacle2D.
2023-09-02 12:22:27 +02:00
569c2e9f85
Simplify some logic NavigationObstacle2D.
2023-09-02 12:16:31 +02:00
eb8943a4f6
Backported from godot4: Add Path2D/3D debug options
...
- smix8
e12e239ab4
2023-09-02 11:38:01 +02:00
2c3c7dcc73
Fix threaded bake logic in NavigationPolygonInstance and NavigationMeshInstance.
2023-08-30 14:36:33 +02:00
Haoyu Qiu
df406d2027
Notify child controls when BackBufferCopy's rect changed
...
(cherry picked from commit 602a0d2fbc84d598cffc79eccd5110f650b6e3c9)
2023-08-30 10:48:20 +02:00
e5cec36ba0
Ported: Physics Interpolation 2D - reset on NOTIFICATION_ENTER_TREE
...
As a convenience, physics interpolation is reset automatically on entering the tree. This will be desired in most situations, and saves the user having to write code for this explicitly.
- lawnjelly
bcfca5ec86
2023-08-27 22:02:26 +02:00
a29d232a4c
Ported: Physics Interpolation - add support for CPUParticles2D
...
Similar to the existing 3D CPUParticles physics interpolation.
- lawnjelly
a117a3307a
2023-08-27 21:59:54 +02:00
d977ed360e
Ported: 2D Fixed Timestep Interpolation
...
Adds support to canvas items and Camera2D.
- lawnjelly
5162efbfe9
2023-08-27 18:48:25 +02:00
lawnjelly
3954a79659
Fix AnimatedSprite normal map loading
...
Normal map names are now correctly set up during loading.
2023-08-27 12:15:46 +02:00
5b869f8b54
Ported from godot: Canvas item hierarchical culling
...
Adds optional hierarchical culling to the 2D rendering (within VisualServer).
Each canvas item maintains a bound in local space of the item itself and all child / grandchild items. This allows branches to be culled at once when they don't intersect a viewport.
- lawnjelly
b777a9e5f9
2023-06-28 20:25:48 +02:00
75ceb22100
Revert "Add option in VisibilityEnabler2D to hide the parent for better performance"
...
This reverts commit ad6e504a5b
.
2023-06-28 19:00:29 +02:00
de1763d40d
Renamed neighbor_dist properties / getters / setters for the navigation server.
2023-06-12 08:37:57 +02:00
975e5c4a9e
Rethink the previous fix.
2023-06-11 18:32:15 +02:00
50c96d5414
Fix building with ptrcall on.
2023-06-11 18:02:58 +02:00
670e465d24
Fix compile error.
2023-06-10 21:25:18 +02:00
23de574af6
Fix non tools build.
2023-06-10 21:11:44 +02:00
f058c87868
Backported from godot4: Rework Navigation Avoidance
...
Rework Navigation Avoidance.
- smix8
a6ac305f96
2023-06-10 20:58:49 +02:00
8b18898609
Backported from godot4: Rework const on NavigationServer methods
...
`const` is used on all methods, even when they cause modification of the server. This reworks the methods of the server to only use `const` on method that don't change the state of the server.
- DarkKilauea
a0715b30f9
2023-06-09 22:03:42 +02:00
6384b9624f
Ported from godot4: Make navigation mesh edge connections optional
...
Makes navigation mesh edge connections optional.
- smix8
f986b52b3c
2023-06-09 20:54:05 +02:00
81c392489a
Ported from godot4: Add NavigationLink helper functions for global positions
...
Adds helper functions to set the links start and end position with global positions or get them as global positions.
Adds global start and end position for the navigation link to the 'link_reached' signal of NavigationAgent. That signal gets emitted when a navigation link waypoint is reached. Requires that 'owner' meta data is enabled on the NavigationAgent.
- smix8
d87f124768
2023-06-09 20:00:28 +02:00
29784d5d5b
Ported from godot4: Enable assigning an owner to navigation regions and links
...
This allows users of the server APIs to get back the nodes that created certain regions and links.
- DarkKilauea
5769b0e8d8
2023-06-09 19:46:44 +02:00
160cb38a50
Ported from godot4: Add support for emitting a signal when entering a NavLink
...
- DarkKilauea
5d8ba2b2d1
2023-06-09 19:08:38 +02:00
e07fd6da59
Ported from godot4: Prevent unnecessary navigation map synchronizations
...
Prevents unnecessary navigation map synchronizations triggered by redundant calls to setters of e.g. region, link or map properties.
- smix8
7e1a261cc6
2023-06-09 16:43:14 +02:00
19fac49904
Turn PoolVectors in NavigationPathQueryResults into Vectors.
2023-06-09 16:27:24 +02:00
b2d8199a7b
Ported from godot4: Update NavigationAgent to use query_path
...
This paves the way for having agents respond to link traversal.
- DarkKilauea
a2c53b881b
2023-06-09 16:19:22 +02:00
12b95cdc1f
Ported from godot4: Add navigation layer bitmask helper functions
...
Adds helper functions to work with the navigation layer bitmask.
- smix8
55923ade68
2023-06-09 15:44:12 +02:00
e98e415168
Fix signal handler error.
2023-06-09 14:18:08 +02:00
268645ff0b
Ported from godot4: Add NavigationAgent Path Debug Visualization
...
Adds path debug visuals for NavigationAgent2D, NavigationAgent3D and NavigationServer.
- smix8
0ab764e84b
2023-06-09 14:17:54 +02:00
23daaf95a6
Ported from godot4: Fix 2D navigation debug visuals ignoring half the ProjectSettings
...
Fixes that NavigationRegion2D and TileMap debug visuals ignored more or less half the ProjectSetting. E.g. random color could not be disabled, edges did not display.
2b19c70664
2023-06-09 11:29:33 +02:00
c11500d480
Ported from godot4: Rename Navigation uses of 'location' to 'position'
...
Contrary to the entire rest of the engine NavigationAgent's and NavigationLinks decided to deal with locations instead of positions.
- smix8
bf1571979c
2023-06-09 10:28:31 +02:00
0438c3cc3f
Backported from godot4: Added node for Navigation links .
...
- DarkKilauea
3dd59013f4
2023-06-08 20:46:09 +02:00