|
|
|
|
|
by handrous
1706 days ago
|
|
That's so obvious it wouldn't have occurred to me that it had a name. And it still looks 100% within "5th grade math" to me. [edit] Wikipediaing "Euler integration", which redirects to "Euler method", it's not clear to me at all how knowing the stuff on that page (and it's Wikipedia, so nothing on the page looks like 5th grade math, even if it actually is) is particularly helpful with coming up with those two addition formulas. [edit edit] I don't mean the tone of any of this to be hostile—it's so hard to convey tone in plain text—but I'm just legitimately not following how this is connected, except in a "well you could derive these two very simple things from a very powerful, more complex, general method that's useful for a bunch of other stuff too—there's no particular reason to, but you could" sort of way. |
|
What makes this more complicated (and granted you might not be doing this if your goal is to clone Mario) is when you need to combine forces together. In that case, the change in velocity comes from acceleration, and the change in acceleration comes from the summation of forces in X and Y directions. Obviously the actual calculation is trivial, just simple arithmetic, but the knowledge of what's going on, and how to expand on it is not. If you wanted to make Joust, for example, you need to know all this stuff about forces, or at least I did when I cloned Joust a million years ago. I agree that Wikipedia has a way of complicating things, and it's possible that even without formal training in calculus that you would have rediscovered what I described, and that's totally fair, but that's still calculus! You're still doing calculus, you just didn't realize it at that point.
Of course if you need more accurate physics in your games (unlikely for a basic platformer), you would need to use a more advanced integration method, e.g. RK4 or Adams Bashforth.
I apologize if I came off slightly gatekeepey; I should be clear that I don't particularly care if you know the name of these methods. I'm just saying that these methods are calculus concepts, and as such having an understanding of calculus can help you with that.