You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PhysicsTestMotionParameters2D does not clear the excludes when setting the array unlike PhysicsRayQueryParameters2D which does, meaning PhysicsTestMotionParameters2D can't be reused. This is true for exclude_bodies and exclude_objects.
Attempt to set a PhysicsTestMotionParameters2D's exclude_bodies or exclude_objects multiple times. Only new entries are inserted and you can never clear the existing entries.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
Godot version
v4.2.dev5.official [e3e2528]
System information
Windows 10
Issue description
PhysicsTestMotionParameters2D does not clear the excludes when setting the array unlike PhysicsRayQueryParameters2D which does, meaning PhysicsTestMotionParameters2D can't be reused. This is true for exclude_bodies and exclude_objects.
godot/servers/physics_server_2d.cpp
Lines 478 to 482 in 59139df
godot/servers/physics_server_2d.cpp
Lines 496 to 502 in 59139df
godot/servers/physics_server_2d.cpp
Lines 163 to 168 in 59139df
Steps to reproduce
Attempt to set a PhysicsTestMotionParameters2D's exclude_bodies or exclude_objects multiple times. Only new entries are inserted and you can never clear the existing entries.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: