Like Earth, most planetary bodies circle their star in stable, detached orbits. These companionable systems can suddenly change when a planet comes too close to its star. In such a close encounter, a star can pull the planet in and swallow it whole.