summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-03-31 16:06:02 +0200
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-03-31 16:07:05 +0200
commit5521b93750977b3c283672f478360b866e8de202 (patch)
treea02f69b70db87bf22e3714e56662961aa413227c /scene
parenta647fb3e623c8e5c14427c2631ee61f132951709 (diff)
Fix that collision objects ignore canvas transform
This aligns collision areas with visual areas within a viewport
Diffstat (limited to 'scene')
-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);