Fix that collision objects ignore canvas transform
This aligns collision areas with visual areas within a viewport
This commit is contained in:
parent
a647fb3e62
commit
5521b93750
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue