예제 #1
0
        public FrictionModel RestoreLocalDataFrom(agx.FrictionModel native)
        {
            SolveType = Convert(native.getSolveType());
            Type      = FindType(native);

            return(this);
        }
예제 #2
0
        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);
        }