Commit Graph

3182 Commits

Author SHA1 Message Date
268c27458a TileMaps now support navigation map overrides. 2023-09-05 10:46:22 +02:00
102ef3ac12 Backported from godot4: Add navigation tutorial links inside class doc
Adds navigation tutorial links inside the class doc to the related and more detailed godot-docs pages.
- smix8
7506ecc5d9
2023-09-05 09:32:40 +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
54acfac5e2 Backported from godot4: NavigationAgent2D, NavigationAgent3D typo fixes
Fixed minor spelling errors in the NavigationAgent2D and NavigationAgent3D classes.
- JustinDodemaide
29a228595c
2023-09-05 08:16:03 +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
5a758b5c1e Fix the tooltip of the Debug Paths option. 2023-09-04 22:29:29 +02:00
73c1f1f673 Fix logic in NavMap::sync(). 2023-09-04 22:00:26 +02:00
1e5f9895e7 Backported from godot4: Remove SceneTree debug avoidance hint
Removes SceneTree debug avoidance hint.
- smix8
f1d8ddd9bd
2023-09-04 21:43:06 +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
2f036edcc5 Backported from godot4: Fix cell_height for navigation meshes
Fixes `cell_height` for navigation meshes.
- smix8
180a5cded1
2023-09-04 18:34:15 +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
dcd93ef8ba Backported from godot4: Fix NavMesh map_update_id returning 0 results in errors
- zorbathut
d0564f2466
2023-09-04 17:56:34 +02:00
493af67f7a Backported from godot4: Add detail to NavigationAgent signal descriptions
Adds detail to NavigationAgent signal descriptions.
- smix8
99e70ab6ef
2023-09-04 17:55:11 +02:00
e3f2ee62ca Backported from godot4: Fix pathfinding funnel adding unwanted point
Fixes pathfinding funnel adding unwanted point due to precision issues.
- smix8
c51e264446
2023-09-04 17:40:28 +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
ebfba6a379 Add back the missing lines to GridMap's class doc. 2023-09-04 16:47:08 +02:00
568b2541b8 Backported from godot4: Fix NavigationAgent3D debug path duplicated points
Fixes duplicated points in NavigationAgent3D debug path.
- smix8
0b8798a995
2023-09-04 16:35:59 +02:00
24d7260169 Replaced the text with an icon on the SpatialEditor's and the CanvasItemEditor's view button. 2023-09-03 14:17:49 +02:00
e0bafda416 Replace the Transform text with an icon in SpatialEditor's toolbar. 2023-09-03 14:04:00 +02:00
3b602c87d4 Removed superfluous VSeparator from the SpatialEditor. 2023-09-03 13:56:04 +02:00
0db05de552 Convert MeshInstanceEditorPlugin's toolbar to the new style. 2023-09-03 13:52:22 +02:00
06efbe1882 Added separators to TerrainWorldEditor and VoxelWorldEditor's toolbars. 2023-09-03 13:43:58 +02:00
fc1a75c678 Converted the menu buttons of the Portals and Rooms system to the new style. 2023-09-03 13:35:55 +02:00
f30f2b37b8 Small tweak to the tooltip of the quick prop convert buttons. 2023-09-03 13:25:00 +02:00
a5219d45d5 Never show text for the Convert Rooms button. 2023-09-03 13:23:16 +02:00
62840e8517 Use an icon for the quick prop conversion buttons instead of text. 2023-09-03 13:15:23 +02:00
201d6aa8e7 Added a VSeparator to the To Prop editor buttons. 2023-09-03 13:09:56 +02:00
72119a0ec0 Group the Anchor and Presets buttons under a common HBoxContainer in CanvasItemEditor. 2023-09-03 13:00:55 +02:00
ee8716a7e6 Added a VSeparator to the NavigationPolygonEditor and the NavigationMeshEditor. 2023-09-03 12:44:55 +02:00
86ee8840ac Removed the diffferently styled context menu from the SpatialEditor and the CanvasItemEditor. New controls are now added directly to the main FlowContainer, so they wrap properly. While having a different background for context sensitive items can look good, it doesn't work well if it's not per plugin. 2023-09-03 12:36:23 +02:00
2b0a9700b8 Remove the text from the bakle and clear buttons in the editor for the NavigationMeshEditorPlugin and the NavigationPolygonEditorPlugin. 2023-09-03 12:04:53 +02:00
e81f25ac7b Added init and finish methods to the NavigationMeshGenerator. Also small tweaks in initialization. 2023-09-03 11:51:09 +02:00
9ae3aa65b7 Added finish method to the NavigationServers. 2023-09-03 11:46:46 +02:00
915014b6df Bake the NavigationMesh on the main thread in the editor. 2023-09-03 10:59:33 +02:00
0fb000c6a1 Added in missing changes from Add NavigationServer Performance Monitor
Adds Performance Monitor for NavigationServer3D..
9802914f97
2023-09-03 10:50:35 +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
9fd4b941e2 Backported from godot4: Unbind NavigationServer3D.process()
Unbinds NavigationServer3D.process().
- smix8
f1026450bf
2023-09-03 09:26:48 +02:00
f84d928aff Backported from godot4: Improve NavigationServer.free() error msg when RID not found
Improves the error msg when NavigationServer.free() does not find the RID e.g. because it was already deleted or did never exist in the first place.
- smix8
b51cab3411
2023-09-03 09:23:39 +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
d2e7ced27b Backported from godot4: Fix NavigationRegion3D debug mesh rendering twice in Editor
Fixes double rendering of NavigationRegion3D debug mesh due to both 3DGizmo and runtime debug rendering the mesh at the same time.
- smix8
0e4c31ce57
2023-09-03 08:45:25 +02:00
6ff5c5f7f3 Added missing doc for NavigationPolygon's cell_size. 2023-09-02 14:01:54 +02:00
e6e30d2f27 Backported from godot4: Disable NavigationMesh edge_max_length property by default
Disables NavigationMesh edge_max_length property by default.
- smix8
c63125c317
2023-09-02 13:46:13 +02:00
71fef953da Backported from godot4: Add more hints to navigation map cell size errors
Adds more hints to navigation map cell size errors.
- smix8
90e2d9fa7e
2023-09-02 13:43:37 +02:00