-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
disappearing
#54
Comments
Thanks for reporting this, I'll have a look at this over the weekend. |
I notice you are trying to cast the object to a pointer type |
Yes, the same behavior with |
Thanks for the additional information, I think this is an issue with Go Callables that accept class arguments. I suspect |
Hi.
I have encountered some strange behavior of Area2D, while trying to handle area intersection with
area_entered
signal.Here is some code fragment with connect of
OnAreaEntered
handler to signal:This code results to this:
2024-07-31_17-49-59.mp4
So after
OnAreaEntered
handler, enteredInteractiveArea
just disappears.InteractiveArea
is customgd.Ared2D
This might be related to #44, because if I trying to cast the entered object to
*gd.Area2D
instead of*InteractiveArea
, I'm gettingnil, true
as a result.Also this is probably related to #53, because it's actually the same project and I can't take
gd.Area2D
as handler argument because of panic:I was able to workaround this by using
gd.Object
as handler argument or by replacingInteractiveArea
to a manually createdArea2D
withCollisionShape2D
in editor:This also fixed
i.Area.GetOverlappingAreas
method. But area disappears anyway afterOnAreaEntered
handler or after taking area fromgd.ArrayOf
by index.Initially I was trying to connect two signals
area_entered
andarea_exited
like this:But this resulted in an error about trying to remove child from busy node or something. Here is the log file
error.log
The text was updated successfully, but these errors were encountered: