@Override
        public void setSpatial(Spatial spatial) {
            super.setSpatial(spatial); //To change body of generated methods, choose Tools | Templates.
            origPos.set(spatial.getLocalTranslation());
        }
Switch mode with space bar at run time
jme3-examples/src/main/java/jme3test/light/TestManyLightsSingle.java