| Home | Trees | Indices | Help |
|
|---|
|
|
KX_GameObject.KX_GameObject --+
|
KX_Light
A Light object.
Example:
# Turn on a red alert light. import GameLogic
co = GameLogic.getCurrentController() light = co.getOwner()
light.energy = 1.0 light.colour = [1.0, 0.0, 0.0]| Instance Methods | |
|
Inherited from |
| Instance Variables | |
|
color Synonym for colour. |
|
| list [r, g, b] |
colour The colour of this light. |
| float |
distance The maximum distance this light can illuminate. |
| float |
energy The brightness of this light. |
| bitfield |
layer The layer mask that this light affects object on. |
| float |
lin_attenuation The linear component of this light's attenuation. |
| float |
quad_attenuation The quadratic component of this light's attenuation (SPOT and NORMAL lights only) |
|
spotblend Specifies the intensity distribution of the spot light. |
|
|
spotsize The cone angle of the spot light, in degrees. |
|
|
type The type of light - must be SPOT, SUN or NORMAL |
|
|
Inherited from |
|
| Constants | |
|---|---|
|
NORMAL A point light source. |
|
|
SPOT A spot light source. |
|
|
SUN A point light source with no attenuation. |
|
| Instance Variable Details |
NORMALA point light source. See attribute 'type' |
SPOTA spot light source. See attribute 'type' |
SUNA point light source with no attenuation. See attribute 'type' |
colourThe colour of this light. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0]
|
distanceThe maximum distance this light can illuminate. (SPOT and NORMAL lights only)
|
lin_attenuationThe linear component of this light's attenuation. (SPOT and NORMAL lights only)
|
spotblendSpecifies the intensity distribution of the spot light. (float) (SPOT lights only) Higher values result in a more focused light source. 0.0 <= spotblend <= 1.0. |
spotsizeThe cone angle of the spot light, in degrees. (float) (SPOT lights only) 0.0 <= spotsize <= 180.0. Spotsize = 360.0 is also accepted. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Tue May 20 07:56:37 2008 | http://epydoc.sourceforge.net |