Regular API function

simGetFloatParameter / sim.getFloatParameter

Description Retrieves a floating point value. See the floating-point parameter identifiers. See also sim.setFloatParameter, sim.getBoolParameter, sim.getInt32Parameter, sim.getArrayParameter and sim.getStringParameter.
C synopsis simInt simGetFloatParameter(simInt parameter,simFloat* floatState)
C parameters
floatState: value of the parameter
C return value
-1 if operation was not successful
Lua synopsis number parameterValue=sim.getFloatParameter(number parameter)
Lua parameters
parameter: parameter identifier (sim_floatparam_...)
Lua return values
parameterValue: value of the parameter
Remote API equiv.
B0-based remote API: simxGetFloatParameter
Legacy remote API: simxGetFloatingParameter

All regular API functions on one page