KX_WordlInfo(PyObjectPlus)

base class — PyObjectPlus

class bge.types.KX_WorldInfo(PyObjectPlus)

A wolrd object.

# Set the mist color to red.
import bge

sce = bge.logic.getCurrentScene()

sce.world.mist_color = [1.0, 0.0, 0.0]

Constants

bge.types.KX_MIST_QUADRATIC

Type of quadratic attenuation used to fade mist.

bge.types.KX_MIST_LINEAR

Type of linear attenuation used to fade mist.

bge.types.KX_MIST_INV_QUADRATIC

Type of inverse quadratic attenuation used to fade mist.

Attributes

bge.types.mist_enable

Return the state of the mist.

Type:bool
bge.types.mist_start

The mist start point.

Type:float
bge.types.mist_distance

The mist distance fom the start point to reach 100% mist.

Type:float
bge.types.mist_intensity

The mist intensity.

Type:float
bge.types.mist_type

The type of mist - must be KX_MIST_QUADRATIC, KX_MIST_LINEAR or KX_MIST_INV_QUADRATIC

bge.types.mist_color

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:mathutils.Vector
bge.types.background_color

The color of the background. 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:mathutils.Vector
bge.types.ambient_color

The color of the ambient light. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].

Type:mathutils.Vector