Another gravity-game! :) I really liked the idea and the presentation too! :)
TerekG
4
Posts
A member registered Jul 22, 2024 · View creator page →
Creator of
Recent community posts
Thank you!
the gravity simulation part is very straightforward, in godot c# it looks something like this:
https://gist.github.com/gabtorok/a13c8522c4b17f8fe020403dd82e62ba
Bit crude, but it's fast enough, basically it's high-school physics: to calculate the acceleration for each object I calculate how every other object's gravity affects them.