2- Joint Inverse Kinematics (Robot Arm)

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

Inverse Kinematics4-12-2023_12-50-59.wick (2.4 KB)

1 Like

@Donut I made a game with this window cleaner4-12-2023_12-26-59.html

I updated it window cleaner sim4-12-2023_13-00-03.html

very nice donut and good implementation gamer_boi

Inverse Kinematics4-13-2023_7-23-09.wick (2.9 KB)
Quick Fix:
Due to some miscalculations with the arm, having the segments at different lengths would actually break the arm

Also, I made it so that pressing space will flip the direction of the elbow