Fix that collision objects ignore canvas transform

This aligns collision areas with visual areas within a viewport
This commit is contained in:
Markus Sauermann 2022-03-31 16:06:02 +02:00
parent a647fb3e62
commit 5521b93750

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