Haoyu Qiu
acf86efebc
Fix NavigationObstacle not estimating radius
2022-09-29 14:39:14 +08:00
Haoyu Qiu
fba5a4ab9a
Fix NavigationObstacle not registering to default navigation map
2022-09-28 15:49:26 +08:00
Rémi Verschelde
edc196f926
Merge pull request #66063 from kleonc/sprite3d-fix-drawing-with-vertical-margins-3x
...
[3.x] `Sprite3D`/`AnimatedSprite3D` Fix drawing `AtlasTexture`s with vertical margins differently than in 2D
2022-09-20 23:06:57 +02:00
lawnjelly
fdd82f4754
CPUParticles initialize data on set_amount
...
Fills particle data with zeroes on resize using set_amount(), to prevent garbage data including Nans being sent to VisualServer, which can corrupt the spatial partitioning.
2022-09-19 16:53:01 +01:00
kleonc
0a64c2eba5
`SpriteBase3D` Fix drawing AtlasTextures with vertical margins differently than in 2D
2022-09-18 20:27:23 +02:00
kleonc
0bf2b8e813
Move duplicated drawing code from `Sprite3D`/`AnimatedSprite3D` to `SpriteBase3D`
2022-09-18 20:27:09 +02:00
lawnjelly
09befec1ed
Portals - Show RayCast debug helper
...
Switches the raycast helper to global portal_mode, allowing it to show when portals are active.
2022-09-12 06:46:48 +01:00
QbieShay
acdcbefa4e
added options for sorting transparent objects
...
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2022-08-30 13:39:32 +02:00
Rémi Verschelde
bbaedffb93
Merge pull request #64875 from fabriceci/ulgy-hack-bullet-margin
2022-08-30 11:44:25 +02:00
Rémi Verschelde
747d30d567
Merge pull request #64372 from smix8/navigation_fix_obstacles_default_map_3.x
2022-08-30 11:01:30 +02:00
fabriceci
b3210c5cd6
Hack as a hot fix for Bullet's collision margin issue
2022-08-25 16:32:48 +02:00
Marcin Nowak
90762b9660
[3.x] Backport panning strength parameters from 4.0
2022-08-23 23:27:51 +02:00
smix8
47b39ce4c2
Fix NavigationObstacle nodes not registering to default navigation map
...
Fix NavigationObstacle nodes not registering to default navigation map.
2022-08-13 19:46:12 +02:00
Cory Petkovsek
f7f112ab1f
Fix free(RID) abuse by various classes
2022-08-11 02:31:00 +08:00
Josh Jones
9d1a972b49
Fix typo when setting NavigationRegion travel_cost
...
(cherry picked from commit 8c324132d0
)
2022-08-08 09:51:45 +02:00
Rémi Verschelde
ab7e2564f3
Merge pull request #63659 from PrecisionRender/add-shape-cast-3d
...
[3.x] Add `ShapeCast` and `ShapeCast2D` nodes
2022-08-06 00:33:29 +02:00
Rémi Verschelde
906a693934
Merge pull request #53852 from Calinou/particles-allow-negative-scale
...
Allow negative scale in Particles and CPUParticles
2022-08-05 22:34:43 +02:00
PrecisionRender
47a62e28ac
[3.x] Add `ShapeCast` and `ShapeCast2D` nodes
2022-07-30 10:23:58 -05:00
Rémi Verschelde
818f1eed31
Code quality: Fix header guards consistency
...
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 14:53:37 +02:00
lawnjelly
d4dc7c4b32
Portals - Allow more logging to be disabled
...
Some logging messages were still being issued when portals/debug/logging was false. This could be annoying in games that stream in parts of levels and repeatedly call `rooms_convert()`.
This PR allows all but essential logging to be disabled.
2022-07-24 13:44:59 +01:00
Rémi Verschelde
33b5709d53
Merge pull request #61601 from Haydoggo/path-follow-fix-3.x
2022-07-18 09:36:22 +02:00
foxydevloper
5238740fef
Add global_translation and global_rotation to Spatial
2022-07-15 21:39:35 -06:00
Hayden
e05f969adb
Fix crash on NaN offset in path_follower 2d and 3d
2022-07-14 14:30:24 +12:00
bruvzg
7f562030be
Use custom key struct, instead of raw hashes for the Label3D cache to avoid potential hash collisions.
2022-07-04 09:46:38 +03:00
reduz
995281ca90
Fix editor-only visibility for lights
...
* Update visibility again for editor-only lights if owner changes.
Fixes #26399 , supersedes #52327
(cherry picked from commit d69e3791bf
)
2022-07-03 03:21:51 +02:00
Rémi Verschelde
86229d0b03
Merge pull request #54239 from Calinou/editor-directionallight-3d-only-show-relevant-properties-3.x
...
Only show relevant properties in the DirectionalLight inspector (3.x)
2022-07-03 02:02:10 +02:00
saneery
cb94797ce4
Add process_mode property to InterpolatedCamera
2022-07-03 01:47:10 +02:00
smix8
381e8dd278
Group NavigationAgent properties
...
Groups the ill-defined NavigationAgent properties between pathfinding and avoidance to make it more clear which property affects what.
(cherry picked from commit dde09be302
)
2022-06-30 19:23:01 +02:00
needleful
eb99c7243e
Apply baked ambient light settings when baking lights with scene environment
2022-06-21 12:12:47 -07:00
Rémi Verschelde
3c35617c50
Merge pull request #62187 from smix8/nav_nodes_depr_3.5
2022-06-20 18:36:17 +02:00
smix8
693aeaf799
[3.5] Mark Navigation/Navigation2D nodes as deprecated
...
Mark Navigation/Navigation2D nodes as deprecated. They already just redirect calls to the NavigationServer and have no longer a real purpose. In Godot 4.0 both nodes are already removed for good reasons.
2022-06-20 17:37:55 +02:00
smix8
88e42b2915
Add NavigationAgent desired path distance
...
Add NavigationAgent desired path distance
(cherry picked from commit 07740302f3
)
2022-06-20 15:11:09 +02:00
Rémi Verschelde
4137578369
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
Fix a couple incorrect uses of gendered pronouns.
2022-06-19 13:48:15 +02:00
smix8
c6f9627c74
[3.5] Add NavigationAgent2D/3D set_navigation_map() function
...
Add NavigationAgent2D/3D set_navigation_map() function. Also fixes some bugs from leftover code before the backport update.
2022-06-16 19:25:52 +02:00
smix8
8bd7c6188b
[3.5] Update NavigationServer backport
...
Backports features and bugfixes from current Godot 4.0 to 3.5 and brings functions and codebase of both version largely in sync to make tutorials more compatible and future backports easier.
2022-06-14 05:55:14 +02:00
Rémi Verschelde
0b048b6d73
SoftBody: Fix attachments property names after #61180
...
Fixes #61581 .
(cherry picked from commit 5c3081dae2
)
2022-06-10 14:42:05 +02:00
Rémi Verschelde
a9e966c319
Merge pull request #61544 from lawnjelly/vis_notifier_max_dist
...
VisibilityNotifier - add max_distance feature
2022-06-10 10:57:53 +02:00
lawnjelly
0c5a424f65
VisibilityNotifier - add max_distance feature
...
Enables turning off objects by distance to the camera in addition to testing whether they are in the view frustum.
2022-06-09 11:37:42 +01:00
smix8
106bf9b793
Add NavigationMesh debug when navmesh is added later through scripts
...
Add NavigationMesh debug when navmesh is added later through scripts
(cherry picked from commit b6eff47bac
)
2022-06-09 10:08:55 +02:00
lawnjelly
1d870403b2
Optimized Mesh Merging
...
Changes from PoolVector to LocalVector and pre-reserving vectors rather than push_back.
2022-06-07 20:16:51 +01:00
Rémi Verschelde
a6b27b526f
Merge pull request #60822 from lawnjelly/fti_add_child_reset
2022-06-03 14:56:19 +02:00
bruvzg
eb44e23ca3
[Label3D, 3.x] Monitor default theme font changes, to prevent use of invalid materials.
2022-05-23 18:16:17 +03:00
Haoyu Qiu
ff5e671c81
Use float when calculating Label3D line height
2022-05-23 17:58:51 +08:00
bruvzg
dc6d8d6098
Backport Label3D node implementation and Sprite*3D material render priority.
2022-05-23 09:14:41 +03:00
smix8
8df9fd076f
Process NavigationAgent2D/3D avoidance on demand only
...
Changes NavigationAgent avoidance callback to a toggle that is disabled by default.
Also fixes a few missing descriptions / wrong warnings.
(cherry picked from commit 7f3688603c
)
2022-05-22 19:43:56 +02:00
smix8
88acb5b798
Make Navigation Agents and Obstacles respect parent process mode
...
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.
(cherry picked from commit 6b51ab66d8
)
2022-05-19 15:34:56 +02:00
Haoyu Qiu
b657d0c76c
Add dedicated macros for property name extraction
...
* Replace case-by-case extraction with PNAME & GNAME
* Fix group handling when group hint begins with property name
* Exclude properties that are PROPERTY_USAGE_NOEDITOR
2022-05-19 11:31:35 +08:00
smix8
c3b39ca1e9
Disable threaded NavigationMesh bake on unsupported OS
...
Automatically disables threaded NavigationMesh bake when OS does not support threads.
(cherry picked from commit 49c603e127
)
2022-05-16 17:52:07 +02:00
smix8
b11708c50d
Expose NavigationObstacle2D/3D get_rid() and add config warning
...
Exposes get_rid() function for scripting.
Adds configuration warning when obstacle is used with not intended static body parent.
(cherry picked from commit 001d89223f
)
2022-05-16 17:52:07 +02:00
smix8
847fab6272
Fix NavigationObstacle2D/3D get_global_transform() error
...
Fixes NavigationObstacle2D/3D reporting a 'get_global_transform: Condition "!is_inside_tree()" error when estimating the agent radius.
The collisionshapes that are lower in the SceneTree order than the obstacle node are not loaded in the SceneTree yet so the global_transform function fails.
Also adds warning message when this happens.
(cherry picked from commit cc707412e9
)
2022-05-16 17:52:07 +02:00