dusk
August 18, 2024, 10:01pm
1
Godot Version
4.3
Question
I get this error when reparenting an Area3D
Harpoon.gd:32 @ _on_area_entered(): Removing a CollisionObject node during a physics callback is not allowed and will cause undesired behavior. Remove with call_deferred() instead.
smix8
August 18, 2024, 11:21pm
2
You are trying to change the SceneTree node hierarchy in the middle of the physics process lock.
The error tells you what to do which is to use call_deferred() for the reparent so it is called afterwards when the lock is lifted.
1 Like
dusk
August 18, 2024, 11:26pm
3
That fixed it, thanks man
system
Closed
September 17, 2024, 11:27pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.