← All posts

Project archive

An orbital-calculation bug found

The little ships didn't learn to fly today. I spent half the day working on our online store. I spent the other half chasing a bug introduced when I reworked some functions yesterday. Planet movement and orbit rendering suddenly broke. Clearly the functions were at fault, but where? Which one? Which variable was wrong?

By evening I found it. One formula was receiving data on the orbit's eccentric anomaly instead of its eccentricity. It's a complex setup, and an error crept in when I switched to internal variables.

Project Facebook profile ↗