@Override
    protected void controlUpdate(float tpf) {
        if (spatial != null && light != null) {
            switch (controlDir) {
                case SpatialToLight:
                    spatialToLight(light);
                    break;
                case LightToSpatial:
                    lightToSpatial(light);
                    break;
            }
        }
    }
@param light The light to be synced.
@param controlDir SpatialToLight or LightToSpatial
jme3-core/src/main/java/com/jme3/scene/control/LightControl.java