Regular API function

simReorientShapeBoundingBox / sim.reorientShapeBoundingBox

Description Reorients the bounding box of a shape. See also the section about positions, orientations and transformations
C/C++
synopsis
simInt simReorientShapeBoundingBox(simInt shapeHandle,simInt relativeToHandle,simInt reservedSetToZero)
C/C++
parameters
shapeHandle: the handle of the shape that will be reoriented. See also sim.getObject.
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/C++
return value
-1 if operation was not successful. 0 if the bounding box could not be reoriented (the bounding box of primitive 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
Python
synopsis
int result=sim.reorientShapeBoundingBox(int shapeHandle,int relativeToHandle)