We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcbfa95 commit 13b5cc1Copy full SHA for 13b5cc1
OpenSim/Simulation/SimbodyEngine/SpatialTransform.cpp
@@ -193,7 +193,9 @@ void SpatialTransform::scale(const SimTK::Vec3 scaleFactors)
193
}
194
SimTK::Vec3 axis;
195
transform.getAxis(axis);
196
- double scaleFactor = ~axis * scaleFactors;
+ // we want weighted aggregate of scale factors but to ignore the sign
197
+ // ignoring sign due to issue #3991 resulting -ve scale factor
198
+ double scaleFactor = ~axis.abs() * scaleFactors;
199
// If the function is already a MultiplierFunction, just update its scale factor.
200
// Otherwise, make a MultiplierFunction from it and make the transform axis use
201
// the new MultiplierFunction.
0 commit comments