Script simulation parametersRelated API functionsIn V-REP, each script has a list of simulation parameters. Those parameters can be used as a quick way of adjusting values of a specific model for example (e.g. the maximum velocity of a mobile robot). The script simulation parameters for a script can be accessed by double-clicking the appropriate icon in the scene hierarchy: [Script simulation parameter icons (1) empty parameter list, (2) non-empty parameter list] The icon appearance is white when the list of simulation parameters is empty, otherwise it is orange. [Script simulation parameters dialog] If the user modifies a value in the parameter list during a simulation, a script can react to that modification and adjust its behavior accordingly. A script can use the simGetScriptSimulationParameter function to retrieve the value of a parameter, or the simSetScriptSimulationParameter function to modify the value of a parameter. Often, script simulation parameters are also used for specific inter-script messaging purposes. Items in the script simulation parameters dialog are briefly described hereafter: Recommended topics |