Disclaimer: I have a rusty understanding of what a Lagrange equation is. The simplest explanation I have found is it's a way to minimize or maximize a function based on a constraint.
I found this forum post showing how they were able to model a pendulum in 3d. I was wondering if someone could give a more in depth explanation of what they did and how they were able to implement it into code at a level that someone who has only taken Physics 1 can understand.
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1191.0
I was thinking about using this to create a 3d game around hook-shots and swinging.