public void disableDebugShape() {

        debugNode.detachAllChildren();
        debugNode = null;
        assetManager = null;
    }
disable the display of the path and the waypoints
jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java