sim.getLightParameters

Retrieves various parameters of a light object

Synopsis

int state, list zero, list diffusePart, list specularPart = sim.getLightParameters(int objectHandle) int state, float[3] zero, float[3] diffusePart, float[3] specularPart = sim.getLightParameters(int objectHandle)

Arguments

  • objectHandle: handle of the light

Return values

  • state:bit-coded: for now, only bit 0 is used: 1=light on.
  • zero: ignore this value
  • diffusePart: red, green and blue component of the light's diffuse part
  • specularPart: red, green and blue component of the light's specular part


See also: