|
|
|
|
|
by zug_zug
739 days ago
|
|
It's interesting. The naive way to write this would be not use any special formulas, and just recalculate mass and acceleration each frame (based on the new mass). And to calculate intersection with the ground at each frame boundary. I guess the idea is that the lower your frame-rate, the less accurate this approach is, or maybe the idea is it's fun to use the actual equations. I'm curious how perceptible the difference is between the two at the original framerate. |
|
https://www.cs.brandeis.edu/~storer/LunarLander/LunarLander/...
Only updating the mass/acceleration at ten-second intervals would be wildly incorrect!