Regular API function

simCreateDummy / sim.createDummy

Description Creates a dummy.
C synopsis simInt simCreateDummy(simFloat size,const simFloat* color)
C parameters
size: the dummy size
color: pointer to 4x3 values representing the dummy color (ambient/diffuse rgb, 3 reserved values (set to zero), specular rgb and emission rgb). Can be nullptr for default values
C return value
-1 if operation was not successful, otherwise the handle of the dummy
Lua synopsis int dummyHandle=sim.createDummy(float size,table[12] color=nil)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart
Remote API equiv.
B0-based remote API: simxCreateDummy
Legacy remote API: simxCreateDummy