A PID controller allows you to control a variable in your system, by reading its value, comparing it with a reference and providing an output that can be applied to your system to reduce the error or the difference between the two (variable and reference). With a PID controller you can easily control a complex physic system without knowing the details of the implementations, it can be useful for steering control in vehicles, Navigation in NPC or cameras, projectiles control, followers of any kind, even for character control with analog input devices such thumbsticks or pads. When ever you need a variable in your game to follow a reference, a PID controller will be a great solution.