I have made a 2-Joint Inverse kinematics system. The arm will try to reach the mouse
All the code is found in the 1 frame in the project
you can adjust the length of segments by changing the “a” and “c” variables
There is also some fencing for if the mouse is out of range, and the arm will fully extend