Regular API function

simGetObjectParent / sim.getObjectParent

Description Retrieves the handle of an object's parent object. See also sim.setObjectParent and sim.getObjectChild.
C/C++
synopsis
simInt simGetObjectParent(simInt objectHandle)
C/C++
parameters
objectHandle: handle of the object
C/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
Python synopsis int parentHandle=sim.getObjectParent(int objectHandle)