Regular API function

simGetDistanceHandle (remote API equivalent: simxGetDistanceHandle)

Description Retrieves the handle of a distance object. The operation of this function depends on the current name suffix settings (see simGetNameSuffix, simSetNameSuffix, and the section on accessing general-type objects). See also simIsHandleValid.
C synopsis simInt simGetDistanceHandle(const simChar* distanceObjectName)
C parameters
distanceObjectName: name of distance object
C return value
handle of the distance object or -1 if operation was not successful
Lua synopsis number distanceObjectHandle=simGetDistanceHandle(string distanceObjectName)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page