Skip to content

Commit

Permalink
Handle case where muscle models were deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
melund committed Jul 27, 2023
1 parent 204138b commit f694e50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ AnyFolder Push ={
AnyDrawVector DrawNormalForce =
{
AnyRefFrame &ref=..TargetObject;
AnyVar Strength= iffun(gtfun(.ContactMuscleModel.S,0.00001),.ContactMuscleModel.S, 0.00001);
AnyVar Strength= max({.ContactStrengthSmoothed, 0.00001});
Vec =..ScaleFactor*..DrawRef.DrawSettingsSupport.Lin.ScaleFactor*(
abs(.NormalVector*.Direction0Muscle.NormalDirectionMuscle.Fout[0])*..BaseObject.Axes'
+ abs(.NormalVector*.Direction01Muscle.Push.FrictionMuscle.Fout[0])*..BaseObject.Axes'
Expand All @@ -545,7 +545,7 @@ AnyFolder Push ={
AnyFolder NormalForceValue =
{
AnyRefFrame &ref=..TargetObject;
AnyVar Strength= iffun(gtfun(.ContactMuscleModel.S,0.00001),.ContactMuscleModel.S, 0.00001);
AnyVar Strength= max({.ContactStrengthSmoothed,0.00001});
AnyVec3 NormalForceVector =..ScaleFactor*..DrawRef.DrawSettingsSupport.Lin.ScaleFactor*(
abs(.NormalVector*.Direction0Muscle.NormalDirectionMuscle.Fout[0])*..BaseObject.Axes'
+abs(.NormalVector*.Direction01Muscle.Push.FrictionMuscle.Fout[0])*..BaseObject.Axes'
Expand Down

0 comments on commit f694e50

Please sign in to comment.