sim.getObjectChild

Retrieves the handle of an object's child object

Synopsis

int childHandle = sim.getObjectChild(int objectHandle, int index) int childHandle = sim.getObjectChild(int objectHandle, int index)

Arguments

  • objectHandle: handle of the object
  • index: zero-based index of the child's position. To retrieve all children of an object, call the function by increasing the index until the return value is -1

Return values

  • childHandle: handle of child object or -1 if the child doesn't exist at that index


See also: