Regular API function

simAlignShapeBB / sim.alignShapeBB

Description Reorients the bounding box of a shape, while keeping the shape frame in place. The shape's inertia properties are unaffected. See also sim.relocateShapeFrame
C/C++
synopsis
int simAlignShapeBB(int shapeHandle,const double* pose)
C/C++
parameters
shapeHandle: the handle of the shape
pose: the pose describing the new orientation of the shape's bounding box. The pose is expressed as (x,y,z,qx,qy,qz,qw). A NULL pose, or a pose containing only zeros will align the bounding box with the mesh's natural bounding box
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
bool result=sim.alignShapeBB(int shapeHandle,float[7] pose)
Lua
parameters
Similar to the C-function counterpart. nil is not a valid argument for pose
Lua
return values
Similar to the C-function counterpart
Python
synopsis
bool result=sim.alignShapeBB(int shapeHandle,list pose)