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).
simInt simResetDynamicObject(simInt objectHandle)
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).
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)