Hi everyone. When area enter area I trying to run this code
if body is Area:
if body.is_in_group("test_group"):
var yellow_cube_explosion_instance = yellow_cube_explosion_scene.instance()
yellow_cube_explosion_instance.transform.origin = Vector3(body.transform.origin.x,body.transform.origin.y + 1.2,body.transform.origin.z)
get_tree().current_scene.add_child(yellow_cube_explosion_instance)
body.queue_free()
Every time it run, game lag a little and in cmd is written :
ERROR: Area::_body_inout: Condition ' !body_in && !E ' is true.
At scene\3d\area.ccp:160
But code finish job normally, one node is removed and one created but only fact that there was error means something went wrong. I tried to google but call_deferred does not help.
Thanks
-Garrom