Two meshes appear in game when moving kinematic body as a child node of spatial node
Hello, I have a REALLY weird issue and I don't know what to do. This is the code I use to move the object:
get_node("KinematicBody").move_and_collide(delta * (player.global_transform.origin - get_node("KinematicBody").global_transform.origin))
The scene is set up like this:
Root (Spatial node)
The script is attached to the Root node.
This is the result I'm getting:
I have only one enemy instance in the scene. Can someone explain why this happens and how to avoid it?