https://www.gameludere.com/2021/05/13/splines-and-bezier-curves-and-their-application-in-video-games/