I’m making a robotic arm which has several joints, each connected to the last one. I’m using Hinge constraints to limit the joints when they are not being used, setting the limit to the same angle like this: myHinge.setLimit(angle,angle);
And setting it back to (-Math.PI/2 , Math.PI/2) when in use.
I’m not sure if this is the best approach for what I’m doing but it’s working quite well.
I managed to get a good approximation of the angle for the bottom arm using Vector3DUtils.getAngle… but this doesn’t work for the middle and upper arm since they are dependent on the movement of the arms below them and I’m not really good at 3D Math.
How can I calculate the angle for each hinge limit in this case?
Thanks for this great engine.