I am making a SHMUP style game with asteroids and a main player ship. When the player kills an asteroid, multiple can spawn where the old one was. It appears that if a new asteroid spawns inside the player, he will teleport or just be instantly destroyed. Both entities move via
move_and_slide. Asteroid uses a circle
CollisionShape2D, ship is a
How can I prevent this wonky player ship behavior? The only thing I can think of is checking position to ensure asteroids are not on top of the player, but that seems like it would be a lot of collision checking, tedious/fragile code.