/// Copy constructor public ChConstraintTwoTuplesContactN(ChConstraintTwoTuplesContactN <Ta, Tb> other) : base(other) { Constraint2TuplesNall.SetFrictionCoefficient(other.Constraint2TuplesNall.GetFrictionCoefficient()); Constraint2TuplesNall.SetCohesion(other.Constraint2TuplesNall.GetCohesion()); constraint_U = other.constraint_U; constraint_V = other.constraint_V; }
/// Copy constructor public ChConstraintTwoTuplesRollingN(ChConstraintTwoTuplesRollingN <Ta, Tb> other) : base(other) { rollingfriction = other.rollingfriction; spinningfriction = other.spinningfriction; constraint_U = other.constraint_U; constraint_V = other.constraint_V; constraint_N = other.constraint_N; }
protected ChConstraintTwoTuplesContactN <Ta, Tb> constraint_N; //< the pointer to N component /// Default constructor public ChConstraintTwoTuplesRollingN() { rollingfriction = 0; spinningfriction = 0; constraint_U = null; constraint_V = null; constraint_N = null; this.mode = eChConstraintMode.CONSTRAINT_FRIC; }
/// Set pointer to normal contact component public void SetNormalConstraint(ChConstraintTwoTuplesContactN <Ta, Tb> mconstr) { constraint_N = mconstr; }