Follow Me algorithm

Hi! I have been researching both PX4 and MAVSDK and I am trying to figure out the algorithm behind the FollowMe mode. How does it work? Through PID?