Regular API function

simReorientShapeBoundingBox / sim.reorientShapeBoundingBox

Description Reorients the bounding box of a shape.
C synopsis simInt simReorientShapeBoundingBox(simInt shapeHandle,simInt relativeToHandle,simInt reservedSetToZero)
C parameters
shapeHandle: the handle of the shape that will be reoriented. See also simGetObjectHandle.
relativeToHandle: the handle of an object relative to which the shape should be reoriented, or -1 to align the bounding box with the world, or sim_handle_self to build the smallest bounding box around the object.
reservedSetToZero: reserved for future extensions. Set to 0.
C return value
-1 if operation was not successful. 0 if the bounding box could not be reoriented (the bounding box of pure shapes cannot be reoriented), otherwise 1.
Lua synopsis int result=sim.reorientShapeBoundingBox(int shapeHandle,int relativeToHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart