1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00
Commit Graph

2448 Commits

Author SHA1 Message Date
Thaddeus Crews
581d675eeb Core: Convert Math class to namespace 2025-03-21 10:29:18 -05:00
A Thousand Ships
432b4be1c3 Fix incorrect guards in VisibleOnScreenNotifier2D
Some methods used `DEBUG_ENABLED` instead of `TOOLS_ENABLED`.
2025-03-21 14:08:02 +01:00
Rémi Verschelde
55cb380c3f Merge pull request #100874 from Lazy-Rabbit-2001/visible-on-screen-rect
Optimize usability of VisibleOnScreenNotifier2D
2025-03-21 13:03:14 +01:00
kobewi
10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
Rémi Verschelde
9ca0de58bb Merge pull request #104136 from KoBeWi/cleaning_camera
Camera2D code cleanup
2025-03-19 12:27:14 +01:00
Thaddeus Crews
85258ec1a5 Merge pull request #102662 from groud/chunk_tilemap_physics
Chunk tilemap physics
2025-03-17 16:03:29 -05:00
kobewi
ecda6b9b0b Camera2D code cleanup 2025-03-15 19:20:48 +01:00
Thaddeus Crews
ba5edb2a77 Merge pull request #103784 from Dominrog/fix-visible-avoidance-debug
Fix visible avoidance debug rendering in NavigationRegion2D
2025-03-13 08:57:15 -05:00
Thaddeus Crews
7e6c4681c6 Merge pull request #101427 from Lazy-Rabbit-2001/camera_2d_draggable
Improve usability of `Camera2D`
2025-03-12 10:31:51 -05:00
Thaddeus Crews
c8cd979552 Merge pull request #103966 from rburing/fti_2d_particles_oops
CPUParticles2D: Fix physics interpolation after entering tree with `emitting = false`
2025-03-12 10:31:47 -05:00
Lazy-Rabbit-2001
5ca70d88a7 Improve usability of Camera2D 2025-03-12 09:57:31 +08:00
Thaddeus Crews
e54a4408ad Merge pull request #102249 from Arnklit/particles2d-emission-shapes
Add emission shape gizmos to Particles2D
2025-03-11 14:01:00 -05:00
Ricardo Buring
5892ddbe24 CPUParticles2D: Fix fixed timestep interpolation after entering tree with emitting = false
This line was left over from earlier testing; the intended functionality
is now contained in _refresh_interpolation_state().
2025-03-11 12:12:32 +01:00
Domino
ae6c87372c Fix visible avoidance debug rendering in NavigationRegion2D 2025-03-08 02:15:08 +01:00
Thaddeus Crews
324512e11c Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
kobewi
92ab92114e Don't duplicate internal nodes 2025-03-07 16:08:53 +01:00
Qbieshay
419e5c40fa Fix particle not re-randomizing every emission 2025-02-20 19:25:05 +01:00
Kasper Arnklit Frandsen
03812fde8a Add emission shape gizmos to Particles2D 2025-02-18 11:29:29 +00:00
Rémi Verschelde
f0f65af16d Merge pull request #102868 from arkology/camera_2_unlimited
Fix `Camera2D` limits drawing
2025-02-15 23:09:49 +01:00
arkology
698cc24416 Fix Camera2D limits drawing 2025-02-15 10:02:58 +03:00
Timo Schwarzer
ebef20f556 Fix Line2D not rendering anything when total length is not computed 2025-02-14 19:00:35 +01:00
Stuart Carnie
1272310a14 Sprite2D: Use correct name to hide region_filter_clip_enabled 2025-02-13 10:06:30 +11:00
kobewi
842421ea61 Prevent errors when Line2D has 0 length 2025-02-12 17:43:53 +01:00
Gilles Roudière
4765bc883c Chunk tilemap physics 2025-02-11 16:28:58 +01:00
Rémi Verschelde
65b81646a4 Merge pull request #102688 from caleb98/master
Fix TileMapLayer bug where dirty cells could be marked twice
2025-02-11 10:54:39 +01:00
Caleb Cassady
7404873b66 Fix TileMapLayer bug where dirty cells could be marked twice
When using runtime data in a TileMapLayer, calling notify_runtime_tile_update
can cause error messages to be printed to the console if the same cell has been
set or erased in the same frame. This could be partially worked around by using
call_deferred on notify_runtime_tile_update, but the problem could re-emerge if
those updates were being made in coroutines.

This commit addresses the issue by adding an additional check to the dirty cell
marking of the TileMapLayer when notify_runtime_tile_update is called. This
check ensures that the cell has not already been added to the dirty cell list,
preventing the condition that causes the error message.
2025-02-10 22:18:10 -05:00
lawnjelly
e46993f0db Physics Interpolation - Auto-reset on set_physics_interpolation_mode()
Fixes historical bug where auto-reset wasn't working correctly.
Also fixes process modes on Cameras when mode is changed.
2025-02-10 10:19:54 +00:00
Qbieshay
2f3f6f69d9 Fix seed not randomizing for particles. Fix seed being stored when fixed seed is off 2025-02-04 12:17:21 +01:00
Thaddeus Crews
3d6821b724 Merge pull request #101808 from markdibarry/parallax-remove-editor-offset-guard
Fix editor `Parallax2D` grid snap movement
2025-01-31 09:15:47 -06:00
Thaddeus Crews
b15b24b087 Merge pull request #101688 from TCROC/fix-gpu-particles-2d-set_one_shot-seed-randomization
Fix `gpu_particles_2d` not randomizing seed when `set_one_shot` is called
2025-01-24 09:05:44 -06:00
Ricardo Buring
56fc0fd175 CPUParticles2D - Add ability to follow physics interpolated target
Allows a non-interpolated particle system to closely follow an interpolated target without tracking ahead of the target, by performing fixed timestep interpolation on the particle system global transform, and using this for emission.

Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2025-01-24 14:13:20 +01:00
Travis Lange
3973c0b644 fix gpu_particles_3d randomizing seed when set_one_shot is called 2025-01-22 11:29:52 -05:00
Mark DiBarry
ce139f7577 Fix editor parallax grid snap movement 2025-01-21 08:21:46 -05:00
Qbieshay
c8b0509b7c Fixed cpuparticles randomness regression caused by #92089 2025-01-21 13:23:55 +01:00
Lazy-Rabbit-2001
41b1e088ee Optimize usability of VisibleOnScreenNotifier2D 2025-01-21 20:00:25 +08:00
Thaddeus Crews
86002e1a3c Merge pull request #100882 from smix8/node_navmesh_geo_parsers
Make nodes handle their respective navigation source geometry
2025-01-16 17:18:01 -06:00
Rémi Verschelde
a69ccee151 Merge pull request #101505 from smix8/region_bounds
Add functions to get axis-aligned bounds of navigation regions
2025-01-14 15:06:06 +01:00
Rémi Verschelde
763e8ceb3b Merge pull request #100227 from clayjohn/particles-texture
Move texture property back to the top level of the Particles inspector.
2025-01-13 20:21:38 +01:00
Rémi Verschelde
133db1fd60 Merge pull request #92089 from QbieShay/qbe/particle_seek
Implement particle seek request and seed options.
2025-01-13 20:21:28 +01:00
smix8
a7520fca6a Add functions to get axis-aligned bounds of navigation regions
Adds functions to get the navigation mesh Rect2 of a NavigationRegion2D or AABB of a NavigationRegion3D.
2025-01-13 20:18:33 +01:00
Rémi Verschelde
23e05b7c2f Merge pull request #101449 from dsnopek/gdextension-virtual-method-compat-merged-hash
Use `MethodInfo::get_compatibility_hash()` to generate the hash for `MethodBind::get_hash()` and other GDExtension hash clean up
2025-01-12 18:07:28 +01:00
Rémi Verschelde
194894d937 Merge pull request #100597 from Zshandi/position-follow-editor-default-float-step
Node2D/3D: Make position follow default float step
2025-01-12 18:07:07 +01:00
smix8
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
David Snopek
696285f23a Use MethodInfo::get_compatibility_hash() to generate the hash for MethodBind::get_hash() and other GDExtension hash clean up 2025-01-11 15:57:42 -06:00
QbieShay
e9eb0b6082 Implemented tools around particles seed randomization.
The purpose of this code is to expose the necessary
functions for users and engine devs to develop tooling
for properly timing and seeking inside particles.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-11 16:31:24 +01:00
Hugo Locurcio
13a1391e73 Draw fewer fishbones to improve Path gizmo readability and performance
This affects both Path2D and Path3D.
2025-01-09 16:08:29 +01:00
Aarni Koskela
f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
arkology
3fa775b844 Speed up Line2D._edit_get_rect() 2025-01-03 20:32:08 +03:00
smix8
8dd0579bcd Add NavigationLink debug direction indicator
Adds direction indicator arrows to the NavigationLink debug depending on if a link is onewyay or bidirectional.
2025-01-02 01:07:26 +01:00
Thaddeus Crews
df2b117ec2 Merge pull request #100317 from TCROC/fix-collision-shape-debug-color-breaks-gdextension
Fix collision shape debug color breaking GDExtension
2024-12-30 08:58:41 -06:00