Each particle interacts gravitationally with all other particles. Occasionally, a small particle can be seen orbiting the "planet" which itself is orbiting the "sun."
This is based on some Coding Train videos (here and here and here) by Daniel Shiffman.
All Gravity 2D apps:
© 2024 Phil Thompson
‧
All Rights Reserved
‧
Terms
‧
Privacy Policy
‧
Disclaimer
About
‧
Archive
‧
GitHub
‧
Tip Jar
‧
RSS