.. _api_SpotLight: SpotLight ========= Inherited: None .. _api_SpotLight_description: Description ----------- To determine the emitter position and emit direction SpotLight uses Transform component of the own Actor. .. _api_SpotLight_public: Public Methods -------------- +--------+---------------------------------------------------------------------------------------+ | float | :ref:`attenuationDistance` () const | +--------+---------------------------------------------------------------------------------------+ | float | :ref:`outerAngle` () const | +--------+---------------------------------------------------------------------------------------+ | void | :ref:`setAttenuationDistance` (float distance) | +--------+---------------------------------------------------------------------------------------+ | void | :ref:`setOuterAngle` (float angle) | +--------+---------------------------------------------------------------------------------------+ .. _api_SpotLight_static: Static Methods -------------- None .. _api_SpotLight_methods: Methods Description ------------------- .. _api_SpotLight_attenuationDistance: float **SpotLight::attenuationDistance** () const Returns the attenuation distance of the light cone. **See also** setAttenuationDistance(). ---- .. _api_SpotLight_outerAngle: float **SpotLight::outerAngle** () const Returns the angle of the light cone in degrees. **See also** setOuterAngle(). ---- .. _api_SpotLight_setAttenuationDistance: void **SpotLight::setAttenuationDistance** (float *distance*) Changes the attenuation *distance* of the light cone. **See also** attenuationDistance(). ---- .. _api_SpotLight_setOuterAngle: void **SpotLight::setOuterAngle** (float *angle*) Changes the *angle* of the light cone in degrees. **See also** outerAngle().