cosparks
601edc7d3e
Fix 2d sdf collision for TileMapLayer
2024-05-20 13:03:02 -07:00
Rémi Verschelde
77470740de
Merge pull request #91936 from jsjtxietian/body-connect
...
Avoid duplicate connect in Joint2D and Joint3D `_update_joint`
2024-05-15 12:09:50 +02:00
jsjtxietian
51bc55598c
Avoid duplicate connect in Joint2D::_update_joint
and Joint3D
2024-05-15 11:57:51 +08:00
A Thousand Ships
ee79386f7b
[Scene] Add SceneStringNames::pressed
2024-05-14 15:51:28 +02:00
Rémi Verschelde
61b970ea44
Merge pull request #91929 from matheusmdx/fix-error-91914
...
Fix error in AudioStreamPlayer2D
2024-05-14 12:07:20 +02:00
matheusmdx
305967c021
Fix error in AudioStreamPlayer2D
2024-05-14 02:07:12 -03:00
kobewi
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
kobewi
a262d2d881
Add shorthand for using singleton string names
2024-05-11 18:53:08 +02:00
Gilles Roudière
7705265477
Fix PropertyListHelper::_get_property returning a valid value even if an index is outside the array valid indices
...
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-05-10 10:46:04 +02:00
Rémi Verschelde
594498e718
Merge pull request #90966 from Calinou/debug-draw-use-runtime-colors
...
Use same colors for editor and running project for collision/path debug
2024-05-07 16:49:31 +02:00
A Thousand Ships
955d5affa8
Reduce and prevent unnecessary random-access to List
...
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)
* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
A Thousand Ships
308dbb8c63
[Core] Add scalar versions of Vector*
min/max/clamp/snap(ped)
...
Convenience for a number of cases operating on single values
2024-05-02 10:31:13 +02:00
kobewi
0b877a9962
Expose is_part_of_edited_scene()
2024-04-26 11:49:38 +02:00
Rémi Verschelde
6149359dac
Merge pull request #91076 from Bn-Fang/master
...
Fix typo in Camera2D node's anchor mode
2024-04-24 09:59:48 +02:00
johnsonbaugh
ef8acbde9a
Fix errors and warnings when loading Skeleton2D Modifications
...
Fixes #73247
2024-04-23 20:42:23 -07:00
Bn-Fang
5d0a229a58
Fixed Typo in Camera 2D node's anchor mode
...
Fixed the Camera 2D node's anchor mode descriptor from "Fixed TopLeft" to "Fixed Top Left"
2024-04-23 16:24:45 -04:00
Rémi Verschelde
2463e42ea1
Merge pull request #90786 from m4rr5/fix_flipped_line2d_joints
...
Fix `Line2D` joints with `joint_mode` set to Round rendered "flipped" for a 180 degree angle.
2024-04-23 19:11:22 +02:00
Hugo Locurcio
b1a2394b3b
Use same colors for editor and running project for collision/path debug
...
This harmonizes the appearance of collision shapes and paths between
the editor and running project, in both 2D and 3D.
This means that in 3D, paths are now green and shapes are now cyan
instead of light blue.
2024-04-21 00:58:08 +02:00
kobewi
c7b6cf9f6d
Don't store TileMapLayer data if empty
2024-04-19 18:05:48 +02:00
aaronp64
58931c073d
Check for NaN in set_volume_db functions
...
Added check in AudioStreamPlayer, AudioStreamPlayer2D, and AudioStreamPlayer3D set_volume_db functions to prevent setting volume to NaN, and give an error. Using NaN for volume and playing the AudioStreamPlayer could prevent all audio from playing, even from other AudioStreamPlayers.
Fixes #88133
2024-04-18 11:28:57 -04:00
Rémi Verschelde
043ca7c63c
Merge pull request #88306 from KoBeWi/PropertyListHelper_will_come_for_you
...
Add PropertyListHelper in all simple cases
2024-04-18 12:24:17 +02:00
Marcel Offermans
e64b4243c3
Added a specific check for the corner case that went wrong.
2024-04-17 12:01:01 +02:00
Rémi Verschelde
01eb81ba48
Merge pull request #90752 from groud/fix_tilemap_y_sort
...
Fix TileMap enabling Y-sort on child nodes
2024-04-17 10:59:04 +02:00
Rémi Verschelde
ce0744866d
Merge pull request #90747 from smix8/remove_constrain_avoidance
...
Remove experimental `constrain_avoidance` from `NavigationRegion2D`
2024-04-17 10:58:55 +02:00
smix8
df66a55ef3
Remove experimental constrain_avoidance from NavigationRegion2D
...
Removes experimental constrain_avoidance feature from NavigationRegion2D.
2024-04-16 18:02:53 +02:00
Gilles Roudière
96b6199de9
Fix TileMap enabling Y-sort on child nodes
2024-04-16 16:02:55 +02:00
Aaron Franke
77e35cf781
Move NavigationMeshSourceGeometryData(2D/3D) to the 2D/3D subfolders
2024-04-15 18:40:43 -07:00
Rémi Verschelde
4e1ed6bc23
Merge pull request #90668 from timothyqiu/owner-id
...
Store `ObjectID` instead of pointer for KinematicCollision owner
2024-04-15 10:00:32 +02:00
Rémi Verschelde
fac55137a1
Merge pull request #89627 from markdibarry/parallax2d_scroll_scale
...
Account for scale in scroll logic for `Parallax2D`
2024-04-15 10:00:15 +02:00
Haoyu Qiu
4176102a5e
Store ObjectID instead of pointer for KinematicCollision owner
2024-04-15 12:28:36 +08:00
kobewi
e95e954c68
Add PropertyListHelper in all simple cases
2024-04-11 18:13:29 +02:00
smix8
1c134f4a3d
Add navigation path simplification
...
Adds navigation path simplification for NavigationServer and NavigationAgent.
2024-04-11 12:32:21 +02:00
markdibarry
18e8b81ffa
Account for scale in scroll logic for Parallax2D
2024-04-10 18:05:05 -04:00
Rémi Verschelde
e68f03a083
Merge pull request #90282 from jhlothamer/issue_84221
...
Fix sharing World2D between SubViewports causes 2D lights of one SubViewport to go missing
2024-04-08 15:03:28 +02:00
Rémi Verschelde
2e1f33793f
Merge pull request #90340 from KoBeWi/FixJoint2D
...
Fix PinJoint2D deferred call error
2024-04-08 11:21:54 +02:00
kobewi
63bff87d7d
Fix PinJoint2D deferred call error
2024-04-07 12:21:40 +02:00
Emmanuel Ferdman
ea5ecc6b8e
fix: update the location of editor theme
2024-04-06 18:03:13 +03:00
Jason Lothamer
b250660ee9
fix issue where Light2D does not re-attach itself to new canvas when viewport worlds are shared
2024-04-05 17:38:42 -04:00
Rémi Verschelde
fe784573c4
Merge pull request #90167 from ajreckof/fix-negative-value-for-position_smoothing_speed-being-allowed
...
Ensure `Camera2D.position_smoothing_speed` is non-negative.
2024-04-05 12:16:14 +02:00
ajreckof
07406af6cc
Fix negative value for position_smoothing_speed being allowed.
2024-04-04 17:15:53 +02:00
A Thousand Ships
09edece17d
[TileMap] Fix forcing cleanup on exiting tree/canvas
2024-04-04 14:47:32 +02:00
Rémi Verschelde
7c6892662d
Merge pull request #90095 from QbieShay/qbe/fix-cpuparticle-instancew
...
Fix `INSTANCE_CUSTOM.w` not being assigned correctly in CPUParticles 2D and 3D
2024-04-04 14:37:15 +02:00
Gilles Roudière
3cd4b2859c
Expose TileMapLayer
2024-04-03 11:02:34 +02:00
QbieShay
1d81068be7
Fixed INSTANCE_CUSTOM.w not being assigned correctly in CPUParticles 2D and 3D
2024-04-01 14:00:40 +02:00
Rémi Verschelde
a0d464ae19
Merge pull request #89820 from rburing/concave_collision_polygon_2d
...
Fix concave `CollisionPolygon2D` debug drawing and docs
2024-03-26 13:45:31 +01:00
Rémi Verschelde
cd4e4c0fcc
Merge pull request #89111 from AThousandShips/vec_use
...
Use `Vector*` component-wise `min/max/clamp` functions where applicable
2024-03-24 01:14:51 +01:00
Ricardo Buring
b6f07a007a
Fix concave CollisionPolygon2D debug drawing and docs
2024-03-23 18:51:39 +01:00
Ricardo Buring
2ed2ccc2d8
Fixed Timestep Interpolation (2D)
...
Adds fixed timestep interpolation to the rendering server (2D only).
Switchable on and off with a project setting (default is off).
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-03-23 12:28:36 +01:00
A Thousand Ships
79ba22a73f
Use Vector*
component-wise min/max/clamp
functions where applicable
2024-03-20 13:47:42 +01:00
smix8
5d5e85fe07
Add NavigationObstacle options to affect and carve navigation mesh
...
Adds NavigationObstacle options to affect and carve navigation mesh.
2024-03-15 01:45:44 +01:00