Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It seems surprisingly easy to make stable orbits in this simulation. I once made a solar system simulator a long time ago (in VB6 of all things) but when I placed a large mass in a similar orbit to a small mass, the small mass would often get ejected out the system. Here that doesn't seem to happen very easily. I used simple newton integration so my sim wasn't very accurate but I wonder if there's more to it than that.


Generally the trick is regularise the inverse square law so that below a certain radius the force clips and stops things pinging off to infinity.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: