Hi there,
I’m working with the shoulder model (AMS 4.0.2). I want to express the global resultant force of GHReactions into a plane aligned with the glenoid fossa, also aligned with the plane used to create the EdgeNodes/EdgeMuscles (let’s call it MyLocalRefFrame). I use the following code to do it :
AnyVec3 FTotalGlobal=F1+F2+F3+F4+F5+F6+F7+F8;
AnyVec3 ResForceLocal = (…Seg.Scapula.gh.MyLocalRefFrame.Axes’*…Jnt.GHReactions.ResultanForce.FTotalGlobal’)’;
// GLOBAL VECTOR DEFINITION
AnyDrawVector DrawFTotal = {
AnyRefFrame &ref=....Seg.Humerus.gh;
Vec =Main.DrawSettings.DrawSettingsSupport.Lin.ScaleFactor*.FTotalGlobal;
GlobalCoord = On;
PointAway = On;
DrawCoord = Off;
Line.RGB = {0,1,1};//Main.DrawSettings.DrawSettingsSupport.Lin.RGB;
Line.Thickness = 0.5*Main.DrawSettings.DrawSettingsSupport.Lin.Thickness;
Line.End.Thickness = 1*Main.DrawSettings.DrawSettingsSupport.Lin.Thickness;
Line.End.Length = 2*Main.DrawSettings.DrawSettingsSupport.Lin.Thickness;
};
// END GLOBAL
// LOCAL VECTOR DEFINITION
AnyDrawVector ResForceLocalVec = {
AnyRefFrame &ref= Seg.Scapula.gh.MyLocalRefFrame;
Vec =Main.DrawSettings.DrawSettingsSupport.Lin.ScaleFactor*.ResForceLocal;
GlobalCoord = Off;
PointAway = Off;
DrawCoord = Off;
Line.RGB = {0,0,1};
Line.Thickness = 0.5Main.DrawSettings.DrawSettingsSupport.Lin.Thickness;
Line.End.Thickness = 1Main.DrawSettings.DrawSettingsSupport.Lin.Thickness;
Line.End.Length = 2*Main.DrawSettings.DrawSettingsSupport.Lin.Thickness;
};
// END LOCAL
However, when I look (see attached snapshot) at both global (cyan) and local resultant forces (blue), I do not get the exact same vectors, but rather a slight difference in orientation, and this difference do not change over time.
Can you help me with that ?
Pierre