Regular API function

remote API equivalent: simxGetObjectParent
RosPlugin API equivalent: simRosGetObjectParent

Description Retrieves the handle of an object's parent object. See also simSetObjectParent and simGetObjectChild.
C synopsis simInt simGetObjectParent(simInt objectHandle)
C parameters
objectHandle: handle of the object
C return value
handle of parent or -1 if the parent doesn't exist or in case of an error
Lua synopsis number parentHandle=simGetObjectParent(number objectHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page