Hi Anybody,
This is an AnyForce class that applies force to the target segments. How can I change this so it only applies force, for example, from frames 50 to 100 and would be zero before and after this duration?
AnyForce LateralBand_R = {
AnyKinPLine ExoBandFront ={
AnyRefNode &Ori = Main.HumanModel.BodyModel.Trunk.SegmentsLumbar.PelvisSeg.ExotendonOrigin_R;
AnyRefNode &Ins = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.ExotendonInsertion_R;
AnyDrawPLine Draw = {
Opacity = 1;
Thickness = 0.02;
RGB = {0, 0.9, 1};
};
};
AnyFloat A = -782.82;
AnyFloat B = 22666;
AnyFloat C = -141966;
AnyFloat D = 254502;
AnyVar L11 = vnorm (Main.ModelSetup.C3DFileData.Points.Markers.FR1.PosInterpol(t) - Main.ModelSetup.C3DFileData.Points.Markers.FR2.PosInterpol(t));
AnyFunPolynomial Force = {
PolyCoef = {.A, .B, .C, .D};
};
F = -{Force(L11)};
};