Can anyone tell me what areas of math should I look at learning to comprehend (maybe even produce) this kind of thing?
Can anyone tell me what areas of math should I look at learning to comprehend (maybe even produce) this kind of thing?
With a lot of physics-based math the best way to see what everything does (assuming you don't understand the core concepts out of the gate) is to just tweak all of the vars that contribute to size, shape and movement to see how they work.
Seriously though it's the writing part that I couldn't do - I'd be happy to come back and not understand something if I could even write it in the first place!
Yeah, geometry is pretty much math (that's why I separated it in the parent comment) but physics justs uses math to model and express the physic concepts.
The math behind the physics on this demo is just addition, subtraction, multiplication... He shouldn't be concerned about the math, but about the physics... unless he doesn't know elementary math of course.
The math behind the basic Newtonian Physics is damn simple. The geometry is very simple too (basic Euclidean Geometry, Bezier curves and that's pretty much it).
1. Reverse engineer it by playing with the code. This is, of course, the very ethos of these code share sites.
2. Learn the basics of physics & geometry on your own and come back to it.
Feel free to choose either method, but for the developer who is curious, option 1 is a lot faster.
Economics isn't math even if economics uses math all the time.
The rest of your comment is correct but irrelevant. He could (and should) go learn the physics he's lacking... but he would probably not learn a single new math concept.
The math needed to express these physics concepts is taught in secondary education (addition, subtraction, multiplication, vectors... not much more).
The "physics" he didn't understand in the code IS math, though. That's the point. Even if you know physics, you won't be able to understand the code without the math.
The fact that the program is implemented by using " just addition, subtraction, multiplication" is irrelevant, because this is how computers (and mathematical numerical methods) work.
For many great mathematicians the difference between math and physics is almost non-existent. You may also read this guy, btw https://en.wikipedia.org/wiki/Vladimir_Arnold