Drag your mouse around If you want to change the number of segments or the length go into the initialization function and change the variables segmentLength and segments
WOOOOOOO I DID IT TOOK A FEW MONTHS TO GET BACK TO IT BUT IT'S DONE FIXED POINT INVERSE KINEMATICS all code by me