-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Area2D's signals *_entered and *_exited do not fire predictably during movement dependent on speed and size. #43743
Comments
This is yet another physics tunneling issue. Try increasing Physics Fps in the Project Settings. |
Confirmed on 3.2.3 and 3.2.4 beta 5. Increasing the physics FPS a lot can fix the problem, but it can slow the game down by making physics run too many times for one game frame. |
The same issue exists for a KinematicBody2D moving quickly, is this expected? I'm not familiar with the inner workings, but it seems like KinematicBody2D uses some kind of CCD by default. So in theory, shouldn't it be able to reliably trigger any Area2D it passes through? |
@djrain It's probably expected, I don't think KinematicBody2D does proper CCD. But it should be added at least as an option. |
Any chance to implement the #69934 and #70160 for Area2D and Area3D? At least as an option on the editor (for performance reasons). The problem at the moment is that area nodes only trigger the I don't think changing the physics ticks is the best solution for this. |
Shouldn't this have a milestone 3.6? |
Still in 3.6 beta 4 |
This solved the issue for me by dramatically upping physics ticks per second to 1,000 and max physics steps per frame to 100. I'm not sure how these settings will affect slower machines but it has no obvious downside on mine. Edit: I tested on my M1 Macbook which gets about 15% of the frames as my PC and it was still too slow detecting the mouse entering/exiting. |
I hope someone can solve it, I have it pending in my project and I have it marked as a pending bug although I applied a remedy I hope someone solves this. https://discord.com/channels/212250894228652034/1114293117336690778 |
Forgive my insistence but... I cry out to the gods so that some charitable soul can solve this. |
Godot version:
v3.2.3.stable.official
OS/device including version:
Windows 10 Home 64-bit (10.0 Build 19041)
Issue description:
Area2D's signals body_entered, body_exitedm, area_entered and area_exited do not fire predictably dependent on the size and speed of the objects involved.
Steps to reproduce:
Minimal reproduction project:
enter_exit_non_detection.zip
The text was updated successfully, but these errors were encountered: