making a project that required IK outside of scratch so I made this in a few minutes to refresh my knowledge. This time I simplified the math a bit more. If you'd like to learn inverse kinematics, I recommend this video: youtube.com/watch?v=qlfh_rv6khY