Regular API function

simSetLightParameters / sim.setLightParameters

Description Sets various parameters of a light object. See also sim.getLightParameters.
C/C++
synopsis
simInt simSetLightParameters(simInt objectHandle,simInt state,const simFloat* setToNULL,const simFloat* diffusePart,const simFloat* specularPart)
C/C++
parameters
objectHandle: handle of the light
state: bit-coded. for now, only bit 0 is used: 1=light on
setToNULL: not used, set to nullptr
diffusePart: red, green and blue component of the light's diffuse part. Can be nullptr
specularPart: red, green and blue component of the light's specular part. Can be nullptr
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.setLightParameters(int objectHandle,int state,nil,float[3] diffusePart,float[3] specularPart)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.setLightParameters(int objectHandle,int state,None,list diffusePart,list specularPart)