Removes CoordinateActuator::CreateForceSetOfCoordinateActuatorsForModel, which is problematic for a few reasons:
It returns a raw pointer to a new ForceSet which is memory-unsafe, especially for scripting users who might not realize this needs to be adopted by a Model.
Even if you did add this to a Model, it would completely overwrite the existing ForceSet. A better alternative is ModOpAddReserves, which appends a set of CoordinateActuators to the model.
Testing I've completed
n/a
Looking for feedback on...
As far as I know, not many users use this method, but it has been in the codebase for a long time so this could be a breaking change for some.
Fixes issue #3598
Brief summary of changes
Removes
CoordinateActuator::CreateForceSetOfCoordinateActuatorsForModel
, which is problematic for a few reasons:ForceSet
which is memory-unsafe, especially for scripting users who might not realize this needs to be adopted by aModel
.Model
, it would completely overwrite the existingForceSet
. A better alternative isModOpAddReserves
, which appends a set ofCoordinateActuator
s to the model.Testing I've completed
n/a
Looking for feedback on...
As far as I know, not many users use this method, but it has been in the codebase for a long time so this could be a breaking change for some.
CHANGELOG.md (choose one)
This change is