Skip to content

Toggling body collision layer/mask will not update overlapping areas #111823

@KoBeWi

Description

@KoBeWi

Tested versions

4.5

System information

W10

Issue description

When you toggle collision mask and layer (toggle i.e. change between 0 and 1), the overlapping areas will not update.

Video illustrating the problem:

godot.windows.editor.dev.x86_64_OyoVe5Vv67.mp4

The left rectangle is StaticBody2D, the right rectangles are both Area2Ds and the Disable checkboxes will toggle collision masks and layers.
The areas show as red when overlapping body, blue when overlapping another area and pink when overlapping both body and area.

You can see that toggling the body does not update areas. Only when you toggle area, it will update its overlap status with the body. Toggling area will correctly update the overlap status of another area.

Steps to reproduce

Run the MRP scene and play with buttons.

Minimal reproduction project (MRP)

CollisionBug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions