Regular API function

simResetDynamicObject / sim.resetDynamicObject

Description Dynamically resets an object that is dynamically simulated. This means that the object representation in the dynamics engine is removed, and added again. This can be useful when the set-up of a dynamically simulated chain needs to be modified during simulation (e.g. joint or shape attachement position/orientation changed).
C/C++
synopsis
simInt simResetDynamicObject(simInt objectHandle)
C/C++
parameters
objectHandle: handle of the object. Can be combined with sim.handleflag_model, if you wish to reset all objects in a model (where objectHandle would be the model base).
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.resetDynamicObject(int objectHandle)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.resetDynamicObject(int objectHandle)

<