public FrictionModel RestoreLocalDataFrom(agx.FrictionModel native) { SolveType = Convert(native.getSolveType()); Type = FindType(native); return(this); }
public FrictionModel RestoreLocalDataFrom(agx.FrictionModel native) { SolveType = Convert(native.getSolveType()); Type = FindType(native); // TODO: How do we handle oriented when restoring from file? if (Type == EType.ConstantNormalForceBoxFriction) { NormalForceMagnitude = System.Convert.ToSingle(native.asConstantNormalForceOrientedBoxFrictionModel().getNormalForceMagnitude()); ScaleNormalForceWithDepth = native.asConstantNormalForceOrientedBoxFrictionModel().getEnableScaleWithDepth(); } return(this); }