This is a ball physics engine by @antiquark. I am going to turn this into a golf game where you need to make it into a pocket/goal