protected void createShape(){
        switch(axis){
            case 0:
                cShape=new CapsuleShapeX(radius,height);
            break;
            case 1:
                cShape=new CapsuleShape(radius,height);
            break;
            case 2:
                cShape=new CapsuleShapeZ(radius,height);
            break;
        }
        cShape.setLocalScaling(Converter.convert(getScale()));
        cShape.setMargin(margin);
    }
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