3d1c9fd5de
Move server files into their subfolders
2025-09-30 19:39:39 -07:00
9fbf5808a0
Rename server "free" functions to "free_rid" to match exposed API
2025-09-30 16:52:25 -07:00
e1e2277f5a
Merge pull request #108530 from mihe/physics-debug-perf
...
Fix performance regression when rendering collision shapes
2025-07-15 08:04:25 -05:00
5eee6d22a0
Fix remaining physics and navigation disabling issues.
2025-07-12 17:12:42 +03:00
8634a8e234
Fix performance regression when rendering collision shapes
2025-07-11 20:52:58 +02:00
db6a22cb59
Fix GridMap scenario crash when outside tree
...
Fixes GridMap scenario crash when outside tree.
2025-05-15 23:49:42 +02:00
0ed1c192e8
Merge pull request #105565 from smix8/gridmap_list
...
Replace GridMap legacy use of `List` with `LocalVector`
2025-04-22 10:44:32 -05:00
5168214c48
Merge pull request #105329 from smix8/gridmap_octant_raster
...
Fix GridMap OctantKey cell rasterization
2025-04-22 10:44:30 -05:00
aab8dd6488
Replace GridMap legacy use of List with LocalVector
...
Replaces GridMap legacy use of List with LocalVector.
2025-04-19 15:58:02 +02:00
172fbe403a
Optimize GridMap rendering scenario quadruple-getters
...
Optimizes GridMap rendering scenario quadruple-getters.
2025-04-19 13:24:26 +02:00
39db6c1d3c
Fix GridMap OctantKey cell rasterization
...
Fixes GridMap OctantKey cell rasterization that had octants at different sizes due to faulty integer division.
2025-04-17 17:57:34 +02:00
4f4031a675
Replace size() == 0 with is_empty().
2025-04-02 19:18:43 +08:00
556933306a
Allow to compile templates without navigation features
2025-04-01 11:53:35 -03:00
5ad414d046
Allow to compile templates without physics servers
2025-03-28 11:00:44 -03:00
10f6c01b9c
Remove ABS in favor of Math::abs
2025-03-19 13:52:40 +01:00
0ed2cb0439
Make nodes handle their respective navigation source geometry
...
Makes nodes handle their respective navigation source geometry.
2025-01-12 13:14:46 +01:00
a1846b27ea
Improve use of Ref.is_null/valid
...
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
33817b186f
Remove unused header in drivers and modules.
...
Co-authored-by: Thaddeus Crews <repiteo@outlook.com >
2024-12-24 00:40:47 +08:00
c09855627f
Fix GridMap freeing edge connection debug mesh too early
...
Fixes GridMap freeing edge connection debug mesh too early.
2024-12-14 18:15:28 +01:00
612981c1ea
Add ShadowCastingSetting to MeshLibrary / GridMap items
...
Adds ShadowCastingSetting to MeshLibrary / GridMap items.
2024-11-27 01:06:21 +01:00
925b690c98
Core: Integrate Ref::instantiate where possible
2024-11-10 12:41:26 -06:00
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
a262d2d881
Add shorthand for using singleton string names
2024-05-11 18:53:08 +02:00
3590d49c70
GridMap: Fix physics_material property
...
Use computed bounce and friction, just like StaticBody3D already does.
Also don't rebuild all internals just to set two floats on each body.
2024-04-10 21:44:46 +02:00
c399424db9
Move 3D-only resources to their own folder
2024-02-26 05:23:04 -06:00
0e8f90f4c8
Update deferred calls to use Callables
2024-01-09 16:11:47 +01:00
c9957d8907
Update meshes list UI immeditely after setting mesh library in gridmap
2023-09-20 10:51:19 +08:00
3a3ebbf4c9
Ensure the visibility is updated when entering the tree
2023-08-29 15:11:57 +08:00
ecc3944b1e
Cleanup MeshLibrary changed signals
2023-08-19 11:56:31 +02:00
de4a3fa151
Unify and streamline connecting to Resource changes
2023-07-17 19:35:57 +02:00
a6ac305f96
Rework Navigation Avoidance
...
Rework Navigation Avoidance.
2023-05-10 05:01:58 +02:00
cc02007e30
Fix GridMap free navigation RID error spam
...
Fixes GridMap free navigation RID error spam.
2023-03-21 12:19:36 +01:00
a0715b30f9
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.
2023-01-07 17:29:00 -08:00
d95794ec8a
One Copyright Update to rule them all
...
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".
2023-01-05 13:25:55 +01:00
ea33001b95
Add safety-checks before some servers free()
2022-12-29 16:23:38 -05:00
63f95c0e58
Merge pull request #70366 from quentinguidee/refactoring/fix-double-get-singleton
...
Fix double get_singleton()
2022-12-21 09:27:02 +01:00
61f33e205c
Change GridMap navigation_layers to be per mesh_library item
...
Changes GridMap navigation_layers from a single bitmask for the entire GridMap to a bitmask for each item used in the mesh_library with a baked navmesh.
2022-12-20 20:51:32 +01:00
d9c05f7fbd
Fix double get_singleton()
...
Signed-off-by: Quentin Guidée <quentin.guidee@gmail.com >
2022-12-20 14:26:15 -05:00
eb88aef537
Add GridMap collision_priority
...
Adds property 'collision_priority' for all physics bodies of the entire GridMap.
2022-12-19 19:31:43 +01:00
34e7628f5f
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".
2022-12-17 22:06:22 +01:00
5769b0e8d8
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.
2022-12-10 12:03:06 -08:00
0103af1ddd
Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
2022-10-07 11:32:33 +03:00
d8268aae30
Fix MSVC warnings C4324, C4389, C4456, and C4459
...
Part of #66537 .
2022-09-28 16:43:09 +02:00
207c747ac0
Merge pull request #64193 from smix8/navigation_gridmap_navmap_change_4.x
...
Add GridMap function to change navigation map for baked navigation regions
2022-09-08 09:19:19 +02:00
41c529a94d
Add GridMap function to change navigation map for baked navigation regions
...
Adds function to change the navigation map for baked navigation regions.
Before all cells with a baked navigation mesh were locked to the default navigation map of the world resource.
2022-09-08 06:43:02 +02:00
d7f75fab60
Remove / Replace old Navigation Debug Visualization
...
- removes / replaces leftovers from old navigation debug code
- cleanes SceneTree and ProjectSettings from old navigation debug
2022-09-07 18:30:35 +02:00
694190a354
Rename TileMap/GridMap.world_to_map and opposite to local_to_map
...
For both TileMap and GridMap:
- `world_to_map` -> `local_to_map`
- `map_to_world` -> `map_to_local`
Also changes any mention of "world" in this context to "local" to avoid future confusion.
Finally, updates the docs of both methods for consistency.
In particular, adding a note on how to convert the returned values from local to global coordinates and vice versa.
2022-09-05 18:08:39 +02:00
9a368eca43
Merge pull request #64173 from smix8/navigation_debug_gridmap_edgeconnections_4.x
2022-09-01 17:57:58 +02:00
1abdffe7a0
Replace Array return types with TypedArray 2
2022-08-23 23:21:32 +02:00
da7a5653f4
Expose Basis set_orthogonal_index method as a GridMap function
2022-08-20 21:42:20 -05:00