Live data from Hacker News

Gravity Simulator

nowykurier.com

31–40 of 135 posts

Re: Gravity Simulator

#32
this is awesome. had a look into doing this on the GPU a while ago, barnes-hut was the best speedup I could find

There has to be a game in this somewhere...

Re: Gravity Simulator

#37

Such an amazing simulator to play with. I can only imagine how breath-taking this can be for kids to play around, plus it teaches physics!

Think about how breath-taking and educating must it be for a kid to write such a thing.

As a person who actually learned basic mechanics by writing video games I do believe that "you ain't understood nothing until you know how to teach it to a computer". Trying to express knowledge in (working) code is a great exercise that mercilessly catches even tiny holes in one's understanding.

Re: Gravity Simulator

#38
Very fascinating! It reminds me of Conway's Game of Life, looking for different kinds of patterns that will make a stable construct and do something interesting.

Re: Gravity Simulator

#39
post #32

this is awesome. had a look into doing this on the GPU a while ago, barnes-hut was the best speedup I could find There has to be a game in this somewhere...

Check NVIDIA papers of doing "n bodies problem" on CUDA. They got awesome results.

Re: Gravity Simulator

#40
post #16

Why Euler? Isn't that terribly unstable?

Only in low FPS scenarios (it becomes even worse if the FPS is low AND wildly varies). For a toy like this there is nothing wrong with using Euler.
Post reply on HN