simGetObjectHierarchyOrder

Retrieves the zero-based position of an object among its siblings in the scene hierarchy

C++ synopsis

int simGetObjectHierarchyOrder(int objectHandle, int* totalSiblingsCount)

Arguments

  • objectHandle: the handle of the object
  • totalSiblingsCount: if not null, receives the total siblings count

Return

  • -1 if operation was not successful, otherwise the position of the object