![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | jujumumu |
When I use queue free on a rigidbody from another script it just teleports to another place. Why is this happening and how can I fix this?
queue_free()
should really destroy the node as soon as Godot can do it safely. If you see the node teleport, either an error occurred, your queue_free
didn’t run, or another node looking the same got instanced maybe.
Zylann | 2019-08-17 19:12
I am instancing a scene but I do not know where it is. If I keep instancing it queue_free() everything somehow a scene instances somewhere else not in the instance code. Weird thing is if I queue_free() from the item it just deletes itself nothing is instanced.
jujumumu | 2019-08-17 20:00
I found my bug which was I was instancing the same thing with the same name then setting its position which lead to the error.
jujumumu | 2019-08-18 21:41