Regular API function

simResetProximitySensor / sim.resetProximitySensor

Description Clears the detection state, detection color, detection segments, etc. of a proximity sensor object. See also sim.handleProximitySensor.
C/C++
synopsis
simInt simResetProximitySensor(simInt sensorHandle)
C/C++
parameters
sensorHandle: handle of the proximity sensor object or sim.handle_all or sim.handle_all_except_explicit. (sim.handle_all will reset all proximity sensor objects, while sim.handle_all_except_explicit will only reset those that are not marked as "explicit handling")
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.resetProximitySensor(int sensorHandle)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.resetProximitySensor(int sensorHandle)