@Override
    public void write(JmeExporter ex) throws IOException {
        super.write(ex);
        OutputCapsule oc = ex.getCapsule(this);
        oc.write(controlDir, CONTROL_DIR_NAME, ControlDirection.SpatialToLight);
        oc.write(light, LIGHT_NAME, null);
    }
Sets the spatial to adopt the light's world transformations.

@author Markil 3
jme3-core/src/main/java/com/jme3/scene/control/LightControl.java