3 ms·
I like using PID controllers for this kind of thing. They make it easy to get "authentic" looking behavior. By tuning the params you can adjust to behave anywhe
by MrLeap 4y ago
I like using PID controllers for this kind of thing. They make it easy to get "authentic" looking behavior. By tuning the params you can adjust to behave anywhere from smooth like silk to wild overcorrections.
They look really lively, I'll post a video on twitter or something.
https://en.wikipedia.org/wiki/PID_controller https://en.wikipedia.org/wiki/PID_controller
- fho 4y agoI just read [this](http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/ http://brettbeauregard.com/blog/2011/04/improving-the-beginn...) yesterday. It details the effort that went into making the Arduino PID library more robust compared to the "beginners PID".
- themeiguoren 4y agoAs a controls engineer, this is still the best one-stop shop I’ve found for making PIDs a lot more usable & robust. There’s a few things I’d add but this covers the major bases.
- fho 4y agoSo ... what would you add? :-)
- TheRealPomax 4y agoYeah but now you made tuning the PID parameters your day job =(
- HelloNurse 4y agoIf you like machine learning, you can simulate the game in suitable test scenarios and evolve high-performance missile controllers. Like in real life at the firing range, without engineers. Of course, bad controllers that can be exploited by the player to make missiles miss are usually fun, as are slight variations of PID parameters in the same missile salvo, to disperse them organically.
- MrLeap 4y agoIf tuning to taste gets old, just use an infinite series of PID controllers to tune your PID parameters.
- TheRealPomax 4y agoAnd that's how an XKCD comic gets born.
- mwkaufma 4y agoI wrote about those ages ago, when I was working on the game ABZU https://www.tumblr.com/giantsquidology-blog/144615245984/fluid-motion-in-abz%C3%BB https://www.tumblr.com/giantsquidology-blog/144615245984/flu...
- camtarn 4y agoHeh, great article! One of those engineering efforts where you're trying to get to the point where the user doesn't notice any of the fancy math, just that the controls always seem to Do the Right Thing.