Regular API function

simResetDistance / sim.resetDistance

Description Deprecated. See sim.checkDistance instead.
C/C++
synopsis
int simResetDistance(int distanceObjectHandle)
C/C++
parameters
distanceObjectHandle: handle of the distance object or sim.handle_all or sim.handle_all_except_explicit. (sim.handle_all will reset all registered distance 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.resetDistance(int distanceObjectHandle)
Lua
parameters
Similar to the C-function counterpart
Lua
return values