Based on math and algorithm code samples by Alan Zucconi from https://www.alanzucconi.com/2017/04/10/robotic-arms/ Practical application of said algorythm, controls setup and Unity scene by me.