typpo / spacekit

Javascript library for 3D space visualizations
https://typpo.github.io/spacekit/
MIT License
527 stars 39 forks source link

Fix proper removal of all visual features of objects on object removal #32

Closed HankG closed 4 years ago

HankG commented 4 years ago

What does the pull request do?

The Simulation.removeObject currently has buggy behavior where object markers, labels, and drop lines to ecliptic aren't removed when the object is. This fixes that behavior.

What is the current behavior?

See above...

How was the solution implemented (if it's not obvious)?

Ideally I think particle markers should probably be deleted not hidden since this could create a leak of sorts if objects are constantly added/removed during a run but for an initial fix this is a more streamlined update.