godot icon indicating copy to clipboard operation
godot copied to clipboard

Area3D does not see newly instanced StaticBody3D with Monitoring/Monitorable enabled

Open cridenour opened this issue 3 years ago • 1 comments

Godot version

4.0.beta1

System information

Windows 10

Issue description

I'm aware of #17238 (specific to Monitorable being enabled, which doesn't help here) and #57539 which is specific to moving a StaticBody. Could be the same fix works for this and #57539 but I did not want to miss this use-case.

When you have a Area3D and a new StaticBody3D is placed in the scene, it will not detect it until you change the collision_layer or collision_mask. I imagine other "touches" will force an update as well.

Steps to reproduce

  1. Create a scene with an Area3D.
  2. After scene is ready, add a StaticBody3D with the layer of the Area3D's mask.

Optional workaround: 3. After more time, update the collision_layer or collision_mask.

Minimal reproduction project

Area3D StaticBody.zip

This MRP automates showing the bug and the current workaround.

cridenour avatar Sep 26 '22 19:09 cridenour

I'm having this exact same bug in 2D. I'm using Godot version 4.0.beta4, on Windows 11.

Brandtweary avatar Nov 18 '22 18:11 Brandtweary

Same issue with Area2D and StaticBody2D, Godot 4.0.2.stable, MacOS.

jsardev avatar May 02 '23 09:05 jsardev

Area2D doesn't emit mouse_entered event as well if instantiated from script. Linux v4.0.3.stable.mono.official

RawEnchilada avatar Jun 18 '23 14:06 RawEnchilada

Same issue with v4.1.1.stable.official [bd6af8e0e], Linux

Razboinicul avatar Aug 16 '23 06:08 Razboinicul

Same with Area2d, 4.2.stable, windows 11

Denatle avatar Jan 07 '24 20:01 Denatle