public void setPathSplineType(SplineType pathSplineType) {
        spline.setType(pathSplineType);
        if (debugNode != null) {
            Node parent = debugNode.getParent();
            debugNode.removeFromParent();
            debugNode.detachAllChildren();
            debugNode = null;
            attachDebugNode(parent);
        }
    }
sets the type of spline used for the path interpolation for this path
@param pathSplineType the desired type
jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java