MinieExamples/src/main/java/jme3utilities/minie/test/DropTest.java
/**
     * Cast a physics ray from the cursor and select the nearest drop in the
     * result.
     */
Cast a physics ray from the cursor and select the nearest drop in the
result.
Cast a physics ray from the cursor and select the nearest drop in the result .
private void pick() {
        List<PhysicsRayTestResult> hits = rayTestCursor();
        for (PhysicsRayTestResult hit : hits) {
            PhysicsCollisionObject pco = hit.getCollisionObject();
            for (Drop drop : drops) {
                if (drop.displayObject(pco)) {
                    selectDrop(drop);
                    return;
                }
            }
        }
        selectDrop(null);
    }
private void pick ( ) { List < PhysicsRayTestResult > hits = rayTestCursor ( ) ; for ( PhysicsRayTestResult hit : hits ) { PhysicsCollisionObject pco = hit . getCollisionObject ( ) ; for ( Drop drop : drops ) { if ( drop . displayObject ( pco ) ) { selectDrop ( drop ) ; return ; } } } selectDrop ( null ) ; }
Cast a physics ray from the cursor and select the nearest drop in the
 result.
Cast a physics ray from the cursor and select the nearest drop in the result .