simSetEngineInt32Param

Sets an int32-type physics engine property. You might have to call sim.resetDynamicObject for changes to take effect

C++ synopsis

int simSetEngineInt32Param(int paramId, int objectHandle, const void* object, int val)

Arguments

  • paramId: engine parameter identifier.
  • objectHandle: handle of the shape or joint, or -1 to set a global engine parameter. If -1, then the object argument will be evaluated.
  • object: pointer to a shape or joint objects, or nullptr to set a global engine parameter. If nullptr, then the objectHandle argument will be evaluated.
  • val: the new property value

Return

  • 1 in case of success. This function call doesn't generate any error message.


See also: