I had an old programming test sitting around that I wanted to post. I realized there aren't many n-body simulations so I decided to make it run in 3D, add some UI and one (1) interaction.

Couldn't decide exactly how I wanted to scale things so it uses almost-realistic values that cause pretty chaotic behavior. The gravity modifier slider only affects the green particles at the moment for that reason.

It's a fun project to use for little programming and interface experiments so I'll probably add more to it. DustSim reminded me how much fun little physics sandboxes are, but figuring out how to interact with a 3D version is hard!

Leave a comment if you have any suggestions!

Currently it runs all on single thread CPU with 2048 particles, just because the original test wasn't about quantity. If I work on that aspect I want to experiment with some p3m-like algorithms and other fun tricks.

Published 10 days ago
StatusPrototype
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorAppleguysnake
GenreSimulation
Tags3D, Experimental, Gravity, Mouse only, Physics, Space Sim

Leave a comment

Log in with itch.io to leave a comment.