Regular API function

simSetFloatParameter / sim.setFloatParameter

Description Sets a floating point parameter. See also sim.getFloatParameter, sim.setBoolParameter, sim.setArrayParameter and sim.setInt32Parameter.
C synopsis simInt simSetFloatParameter(simInt parameter,simFloat floatState)
C parameters
floatState: new state for the parameter
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=sim.setFloatParameter(number parameter,number floatState)
Lua parameters
Same as C-function
Lua return values
Same as C-function
Remote API equiv.
B0-based remote API: simxSetFloatParameter
Legacy remote API: simxSetFloatingParameter

All regular API functions on one page