Introduction - If you have any usage issues, please Google them yourself
Using a large number of finite element method to solve partial differential equations, Code, there are very complete notes and explanations Six degrees of freedom to achieve inverse kinematics algorithm.