Thanks to someone on the Godot discord (which is really great, by the way) I now have come up with a really efficient way of storing my gravity shape data (for cubic planets, tubes you fall towards, tubes you fall around, and planes that flip your gravity when you pass them). My original method resulted in a lot of duplicate data and code. Tomorrow I'll code a number of weird gravities near that of of Super Mario Galaxy!
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!