@Override
    public void write(JmeExporter ex) throws IOException {
        OutputCapsule capsule = ex.getCapsule(this);
        capsule.write(scale, "scale", new Vector3f(1, 1, 1));
        capsule.write(getMargin(), "margin", 0.0f);
    }
Read the default margin for new shapes.

@return margin the default margin distance (in physics-space units,
&gt;0)
jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/CollisionShape.java