Regular API function

simGetObjectParent / sim.getObjectParent

Description Retrieves the handle of an object's parent object. See also sim.setObjectParent and sim.getObjectChild.
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 int parentHandle=sim.getObjectParent(int objectHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart
Remote API equiv.
B0-based remote API: simxGetObjectParent
Legacy remote API: simxGetObjectParent