public Vector3f getWayPoint(int i) {
        return spline.getControlPoints().get(i);
    }
returns the waypoint at the given index
@param i the index
@return returns the waypoint position
jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java