Hand tries to go to mouse position, arms will go to the realistic, right angle.
The code should be modified for your projects, for example I kept everything in seperate sprites so it is easier to understand. No credit required btw.