private void gatherMotors() {
        for (int i = 0; i < 3; i++) {
            RotationalLimitMotor rMotor = new RotationalLimitMotor(((Generic6DofConstraint) constraint).getRotationalLimitMotor(i));
            rotationalMotors.add(rMotor);
        }
        translationalMotor = new TranslationalLimitMotor(((Generic6DofConstraint) constraint).getTranslationalLimitMotor());
    }
@param nodeA the body for the A end (not null, alias created)
@param nodeB the body for the B end (not null, alias created)
@param pivotA local translation of the joint connection point in node A
@param pivotB local translation of the joint connection point in node B
@param useLinearReferenceFrameA true&rarr;use body A, false&rarr;use body
B
jme3-jbullet/src/main/java/com/jme3/bullet/joints/SixDofJoint.java