@Override
    protected void computeLastDistance(Spatial owner) {
        if (owner.getWorldBound() != null) {
            BoundingVolume bv = owner.getWorldBound();
            lastDistance = bv.distanceSquaredTo(position);
        } else {
            lastDistance = owner.getWorldTranslation().distanceSquared(position);
        }
    }
Creates a SpotLight at the given position, with the given direction,
the given color and the given inner and outer angles 
(controls the falloff of the light)

@param position the position in world space.
@param direction the direction of the light.
@param range the spotlight range
@param color the light's color.
@param innerAngle the inner angle of the spotlight.
@param outerAngle the outer angle of the spotlight.

@see SpotLight#setSpotInnerAngle(float) 
@see SpotLight#setSpotOuterAngle(float)
jme3-core/src/main/java/com/jme3/light/SpotLight.java