@Override
    public void read(JmeImporter im) throws IOException {
        super.read(im);
        InputCapsule capsule = im.getCapsule(this);
        radius = capsule.readFloat("radius", 0.5f);
        height = capsule.readFloat("height", 0.5f);
        axis = capsule.readInt("axis", 1);
        createShape();
    }
Creates a capsule shape around the given axis (0=X,1=Y,2=Z).

@param radius the desired unscaled radius
@param height the desired unscaled height of the cylindrical portion
@param axis which local axis for the height: 0&rarr;X, 1&rarr;Y,
2&rarr;Z
jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/CapsuleCollisionShape.java