@Nexus6
I don't understand what you want to do exactly, but if
you are trying to code a ragdoll character then you will
have bigger problems to resolve in the future ... such
as limiting the knee joint angles or detecting collision
within all the elements connected ...
Your code above works pretty good for a chain, but
if you are looking for a more complicated structure then
I would suggest having a look at one of the physics
engines we have around... Toka or ODE ...
just a thought...
I don't understand what you want to do exactly, but if
you are trying to code a ragdoll character then you will
have bigger problems to resolve in the future ... such
as limiting the knee joint angles or detecting collision
within all the elements connected ...
Your code above works pretty good for a chain, but
if you are looking for a more complicated structure then
I would suggest having a look at one of the physics
engines we have around... Toka or ODE ...
just a thought...