MinieExamples/src/main/java/jme3utilities/minie/test/TrackDemo.java
/**
     * If the mouse is picking a grid location, enable all track controllers and
     * move the target there.
     */
If the mouse is picking a grid location, enable all track controllers and
move the target there.
If the mouse is picking a grid location enable all track controllers and move the target there .
private void track() {
        Ray ray = MyCamera.mouseRay(cam, inputManager);
        Vector3f location = new Vector3f();
        boolean isTopLeft = ray.intersectWhere(gridTopLeft,
                gridTopRight, gridBottomLeft, location);
        boolean isBottomRight = ray.intersectWhere(gridBottomRight,
                gridTopRight, gridBottomLeft, location);
        if (isTopLeft || isBottomRight) {
            if (leftWatch != null) {
                leftWatch.setEnabled(true);
            }
            if (rightWatch != null) {
                rightWatch.setEnabled(true);
            }
            tipJoint.setEnabled(true);
            watch.setEnabled(true);
            targetBody.setPhysicsLocation(location);
        }
    }
private void track ( ) { Ray ray = MyCamera . mouseRay ( cam , inputManager ) ; Vector3f location = new Vector3f ( ) ; boolean isTopLeft = ray . intersectWhere ( gridTopLeft , gridTopRight , gridBottomLeft , location ) ; boolean isBottomRight = ray . intersectWhere ( gridBottomRight , gridTopRight , gridBottomLeft , location ) ; if ( isTopLeft || isBottomRight ) { if ( leftWatch != null ) { leftWatch . setEnabled ( true ) ; } if ( rightWatch != null ) { rightWatch . setEnabled ( true ) ; } tipJoint . setEnabled ( true ) ; watch . setEnabled ( true ) ; targetBody . setPhysicsLocation ( location ) ; } }
If the mouse is picking a grid location, enable all track controllers and
 move the target there.
If the mouse is picking a grid location enable all track controllers and move the target there .