Vector3f axisA1 = Stack.alloc(Vector3f.class);
calculatedTransformA.basis.getColumn(2, axisA1);
Vector3f axisB0 = Stack.alloc(Vector3f.class);
calculatedTransformB.basis.getColumn(1, axisB0);
float rot = (float) Math.atan2(axisB0.dot(axisA1), axisB0.dot(axisA0));
if (rot < lowerAngLimit) {
angDepth = rot - lowerAngLimit;
solveAngLim = true;
}
else if (rot > upperAngLimit) {