KX_WorldInfo(EXP_PyObjectPlus)
base class — EXP_PyObjectPlus
- class KX_WorldInfo(EXP_PyObjectPlus)
A world object.
# Set the mist color to red. import bge sce = bge.logic.getCurrentScene() sce.world.mistColor = [1.0, 0.0, 0.0]
- KX_MIST_QUADRATIC
Type of quadratic attenuation used to fade mist.
- KX_MIST_LINEAR
Type of linear attenuation used to fade mist.
- KX_MIST_INV_QUADRATIC
Type of inverse quadratic attenuation used to fade mist.
- mistEnable
Return the state of the mist.
- Type
bool
- mistStart
The mist start point.
- Type
float
- mistDistance
The mist distance fom the start point to reach 100% mist.
- Type
float
- mistIntensity
The mist intensity.
- Type
float
- mistType
The type of mist - must be KX_MIST_QUADRATIC, KX_MIST_LINEAR or KX_MIST_INV_QUADRATIC
- mistColor
The color of the mist. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0]. Mist and background color sould always set to the same color.
- Type
- horizonColor
The horizon color. Black = [0.0, 0.0, 0.0, 1.0], White = [1.0, 1.0, 1.0, 1.0]. Mist and horizon color should always be set to the same color.
- Type
- zenithColor
The zenith color. Black = [0.0, 0.0, 0.0, 1.0], White = [1.0, 1.0, 1.0, 1.0].
- Type
- ambientColor
The color of the ambient light. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].
- Type
- exposure
Amount of exponential color correction for light.
- Type
float between 0.0 and 1.0 inclusive
- range
The color range that will be mapped to 0 - 1.
- Type
float between 0.2 and 5.0 inclusive
- envLightEnergy
The environment light energy.
- Type
float from 0.0 to infinite
- envLightEnabled
Returns True if Environment Lighting is enabled. Else returns False
- Type
bool (read only)
- envLightColor
White: returns 0 SkyColor: returns 1 SkyTexture: returns 2
- Type
int (read only)