tmpTrans.inverse(bodies[1+2*i].getWorldTransform(new Transform()));
tmpTrans.mul(tmpTrans, bodies[0].getWorldTransform(new Transform()));
localB.mul(tmpTrans, localA) ;
tmpTrans.inverse(bodies[2+2*i].getWorldTransform(new Transform()));
tmpTrans.mul(tmpTrans, bodies[0].getWorldTransform(new Transform()));
localC.mul(tmpTrans, localA) ;
hingeC = new HingeConstraint(bodies[1+2*i], bodies[2+2*i], localB, localC);
//hingeC.setLimit(-0.01f, 0.01f);
hingeC.setLimit(- BulletGlobals.SIMD_2_PI * 0.0625f, 0.2f);
joints[1+2*i] = hingeC;
ownerWorld.addConstraint(joints[1+2*i], true);