PointLight
Extends: Light
A light shining outward from position, optionally fading out with distance.
Properties
position(BGE.Math.Vector)range(float) — How far the light reaches: it fades linearly from full strength atpositionto
Constructor
new PointLight(
position: BGE.Math.Vector,
range?: float,
color?: integer,
intensity?: float,
): PointLightParameters
position(BGE.Math.Vector)range(float, optional, default: 0) — how far the light reaches; 0 for no falloffcolor(integer, optional, default: "BGE.ColorsRGB.White") — RGB colorintensity(float, optional, default: "1.0")