Merge pull request #59737 from Sauermann/fix-physics-ignoring-canvas-transform

This commit is contained in:
Rémi Verschelde 2022-03-31 18:34:24 +02:00 committed by GitHub
commit 3aa32ef4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);