The common PID position control example of a ping pong ball on a platform, but on godot engine.
It kinda just works. ¯\_(ツ)_/¯ Web interactive and other builds on itch.io: https://zynths.itch.io/testpidball
The simulation is physics based and the system is simulated as close as posible to the real thing.
The measured variable is retrieved by simulating a real infrared distance meter with the possibility to introduce error at your own will.