@Override
    public void write(JmeExporter ex) throws IOException {
        super.write(ex);
        OutputCapsule capsule = ex.getCapsule(this);
        capsule.write(rotA, "rotA", new Matrix3f());
        capsule.write(rotB, "rotB", new Matrix3f());

        capsule.write(angularOnly, "angularOnly", false);
        capsule.write(swingSpan1, "swingSpan1", 1e30f);
        capsule.write(swingSpan2, "swingSpan2", 1e30f);
        capsule.write(twistSpan, "twistSpan", 1e30f);
    }
@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 rotA the joint orientation in A's local coordinates (rotation
matrix, alias created)
@param rotB the joint orientation in B's local coordinates (rotation
matrix, alias created)
jme3-jbullet/src/main/java/com/jme3/bullet/joints/ConeJoint.java