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
Godot v4.2.stable - Linux Mint 21.3 (Virginia) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (nvidia; 535.183.01) - Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 Threads)
Issue description
When changing RigidBody2D position through script, the changed value will not apply until you call get_global_position() directly or indirectly.
If the RigidBody2D is sleeping when you change the position, it visually moves but the moment it isn't sleeping, it's position reverts to the original location before every position change
if get_global_position() is called after changing the position it sometimes works sometimes doesn't, if its called before, it works consistently
Steps to reproduce
Click anywhere on screen to set the Rigidbody2D position to the cursor position
Can uncomment "#self.get_global_position()" in the script to fix the buggy behavior
Tested versions
System information
Godot v4.2.stable - Linux Mint 21.3 (Virginia) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (nvidia; 535.183.01) - Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 Threads)
Issue description
When changing RigidBody2D position through script, the changed value will not apply until you call get_global_position() directly or indirectly.
If the RigidBody2D is sleeping when you change the position, it visually moves but the moment it isn't sleeping, it's position reverts to the original location before every position change
e.g. this changes the position correctly
but this does not
if get_global_position() is called after changing the position it sometimes works sometimes doesn't, if its called before, it works consistently
Steps to reproduce
Click anywhere on screen to set the Rigidbody2D position to the cursor position
Can uncomment "#self.get_global_position()" in the script to fix the buggy behavior
Minimal reproduction project (MRP)
bug_report.zip
The text was updated successfully, but these errors were encountered: