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 at position to

Constructor

new PointLight( position: BGE.Math.Vector, range?: float, color?: integer, intensity?: float, ): PointLight

Parameters

  • position (BGE.Math.Vector)
  • range (float, optional, default: 0) — how far the light reaches; 0 for no falloff
  • color (integer, optional, default: "BGE.ColorsRGB.White") — RGB color
  • intensity (float, optional, default: "1.0")