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

Integrating physics simulations like that is very inefficient and inaccurate, as it does not conserve momentum.

I get it, it was a toy, but if you're really interested look up adaptive step symplectic integrators.



I was just messing doing a bit of recreational programming, with my son. It was good enough for my purposes!


Totally get it ! Just thought of suggesting it in case you wanted to dig in deeper :)




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

Search: