2 ms·
Physics simulations. I've found it surprising how useful my intro physics course knowledge has been. Things like vectors, position vs. velocity vs. acceleration
by kiba 16y ago
Physics simulations. I've found it surprising how useful my intro physics course knowledge has been. Things like vectors, position vs. velocity vs. acceleration, damped harmonic oscillators, FFTs, etc. It's most useful when building UIs and games - oftentimes, you can make a UI feel significantly more natural by adding easing functions that behave like acceleration when you ease in and frictional damping when you ease out.
Any good physics book that I could look into? Preferably books that integrate physics with programming?
- nostrademons 16y agoI believe my course used Halliday, Resnick, and Walker, but at the intro level, basically anything should do. I wasn't even really thinking about the integration with programming - the parts I've used have mostly been just knowing what the basic equations were, along with representations like vectors and such. If you have a function of t, then all you need to do to simulate it is advance t by some infinitesimal amount (based on the frame rate, usually) and then compute your new positions. I guess that when you get to more complex simulations, then things like fast matrix multiplication and symbolic differentiation may be useful, but I've never actually used them in my own programming.
- signa11 16y ago> Any good physics book that I could look into? Preferably books that integrate physics with programming? any game physics book would do that for you e.g. http://www.amazon.com/Game-Physics-Interactive-3d-Technology/dp/1558607404 http://www.amazon.com/Game-Physics-Interactive-3d-Technology... also there is structure-and-interpretation-of-classical-mechanics (yes, by the same cohort)