Regular API function

simCreatePrimitiveShape / sim.createPrimitiveShape

Description Creates a pure primitive shape. See also sim.createMeshShape and sim.createHeightfieldShape
C/C++
synopsis
simInt simCreatePrimitiveShape(simInt primitiveType,const simFloat* sizes,simInt options)
C/C++
parameters
primitiveType: the primitive type of the shape
options: Bit-coded: if bit0 is set (1), backfaces are culled. If bit1 is set (2), edges appear sharp. If bit2 is set (4), the cylinder has open ends
sizes: 3 values indicating the size of the shape
C/C++
return value
-1 if operation was not successful, otherwise the handle of the newly created shape
Lua
synopsis
int shapeHandle=sim.createPrimitiveShape(int primitiveType,float[3] sizes,int options=0)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int shapeHandle=sim.createPrimitiveShape(int primitiveType,list sizes,int options=0)