protected void createShape() {
        if (axis == PhysicsSpace.AXIS_X) {
            cShape = new ConeShapeX(radius, height);
        } else if (axis == PhysicsSpace.AXIS_Y) {
            cShape = new ConeShape(radius, height);
        } else if (axis == PhysicsSpace.AXIS_Z) {
            cShape = new ConeShapeZ(radius, height);
        } else {
            throw new UnsupportedOperationException("Unexpected axis: " + axis);
        }
        cShape.setLocalScaling(Converter.convert(getScale()));
        cShape.setMargin(margin);
    }
Creates a new cone collision shape with the given height, radius and default Y axis.

@param radius The radius of the cone in world units.
@param height The height of the cone in world units.
jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/ConeCollisionShape.java