Regular API function

simRunSimulatorEx

Description Deprecated. See the client application for details.
C/C++
synopsis
int simRunSimulatorEx(const char* applicationName,int options,void(*initCallBack)(),void(*loopCallBack)(),void(*deinitCallBack)(),int stopDelay,char* sceneOrModelToLoad)
C/C++
parameters
applicationName: ignored
options: start-up options (combine them with the OR operator)
initCallBack: the call-back address of the initialization routine. The initialization routine will be called just once, and should be used to load plugins for instance. Can be nullptr for the default initialization routine.
loopCallBack: the call-back address of the main simulator loop. That routine is called continuously in a loop, and should react to simulator messages (simGetSimulatorMessage), and handle running simulations. Can be nullptr for the default loop routine.
deinitCallBack: the call-back address of the deinitialization routine. The deinitialization routine will be called just once, before the simulation ends, and should be used to unload plugins for instance. Can be nullptr for the default deinitialization routine.
stopDelay: a delay in simulation milliseconds, after which the first simulation run will stop, or 0 for no automatic stopping.
sceneOrModelToLoad: the name of the initial scene or model to load.
C/C++
return value
1 if the command was successfull
Lua
synopsis
Lua
parameters
Lua
return values
Python
synopsis