summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-31 18:34:24 +0200
committerGitHub <noreply@github.com>2022-03-31 18:34:24 +0200
commit3aa32ef4b0f031b8541d00fc41b0c295fbd71f3d (patch)
treee3a886502b76627aba8a64901ebd2f64c94b99fb
parentc5f9424fbd82d2d8bedb59ebc63e98747781d1ce (diff)
parent5521b93750977b3c283672f478360b866e8de202 (diff)
Merge pull request #59737 from Sauermann/fix-physics-ignoring-canvas-transform
-rw-r--r--scene/2d/collision_object_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/collision_object_2d.cpp b/scene/2d/collision_object_2d.cpp
index 50863f2c4d..c503de2d59 100644
--- a/scene/2d/collision_object_2d.cpp
+++ b/scene/2d/collision_object_2d.cpp
@@ -81,7 +81,7 @@ void CollisionObject2D::_notification(int p_what) {
return;
}
- Transform2D global_transform = get_global_transform();
+ Transform2D global_transform = get_global_transform_with_canvas();
if (area) {
PhysicsServer2D::get_singleton()->area_set_transform(rid, global_transform);