public ChLinkGear() { tau = 1; alpha = 0; beta = 0; phase = 0; checkphase = false; epicyclic = false; a1 = 0; a2 = 0; r1 = 0; r2 = 0; contact_pt = ChVector.VNULL; local_shaft1.SetIdentity(); local_shaft2.SetIdentity(); // Mask: initialize our LinkMaskLF (lock formulation mask) // to X only. It was a LinkMaskLF because this class inherited from LinkLock. ((ChLinkMaskLF)mask).SetLockMask(true, false, false, false, false, false, false); ChangedLinkMask(); }
public ChLinkPulley() { a1 = 0; a2 = 0; r1 = 1; r2 = 1; tau = 1; phase = 0; checkphase = false; shaft_dist = 0; belt_up1 = ChVector.VNULL; belt_up2 = ChVector.VNULL; belt_low1 = ChVector.VNULL; belt_low2 = ChVector.VNULL; // initializes type local_shaft1.SetIdentity(); local_shaft2.SetIdentity(); // Mask: initialize our LinkMaskLF (lock formulation mask) // to X only. It was a LinkMaskLF because this class inherited from LinkLock. ((ChLinkMaskLF)mask).SetLockMask(true, false, false, false, false, false, false); ChangedLinkMask(); }