public void triggerWayPointReach(int wayPointIndex, MotionEvent control) {
        if (listeners != null) {
            for (Iterator<MotionPathListener> it = listeners.iterator(); it.hasNext();) {
                MotionPathListener listener = it.next();
                listener.onWayPointReach(control, wayPointIndex);
            }
        }
    }
return the number of waypoints of this path
@return the count (&ge;0)
jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java