diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-31 18:34:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 18:34:24 +0200 |
commit | 3aa32ef4b0f031b8541d00fc41b0c295fbd71f3d (patch) | |
tree | e3a886502b76627aba8a64901ebd2f64c94b99fb | |
parent | c5f9424fbd82d2d8bedb59ebc63e98747781d1ce (diff) | |
parent | 5521b93750977b3c283672f478360b866e8de202 (diff) |
Merge pull request #59737 from Sauermann/fix-physics-ignoring-canvas-transform
-rw-r--r-- | scene/2d/collision_object_2d.cpp | 2 |
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); |