Godot Version
Godot v4.3.stable - macOS 14.6.1 - GLES3 (Compatibility)
Question
It seems that the camera position alters the area collision detection. I link the video because it’s easier to explain:
In the video debug collision shapes are correctly displayed and they seem to stay in position with their Node, however, the char can be placed only when released in the center of the viewport where the Area2d should be if the camera wouldn’t have moved
What I tried:
- It’s not the camera movement that causes the bug. I tried to keep the camera still but offset its position in the editor, and the area detection remains in the center of the viewport, instead of being on the red square.
- I tried not to use a Control for the CharUI and replaced the parent with the DropPointDetector node (I thought of strange behavior with the Control node)
- One interesting thing: I added callbacks for ‘on_mouse_entered’ and ‘_on_area_entered’ on the DropDownArea (the red square). ‘on_mouse_entered’ is correctly detected in the square position, even when the camera moves, but ‘_on_area_entered’ remains detected only in the original position, not aligned with the square