コード例 #1
0
 public void AddNewFixedPulley()
 {
     //fixed pulleys add a support rope to the mass
     pulley_mass.AddSupportRope();
     PulleyController.AddFixedPulleyToScene();
     PulleyController.GetPulleysInScene();   //add all the pulleys back to the list of pulleys
     PulleyController.CalculateMechanicalAdvantage();
     num_fixed_pulleys++;
 }
コード例 #2
0
 //when a new pulley is added
 public void AddNewMoveablePulley()
 {
     pulley_mass.AddPulleyToMass();          //add a support pulley to the mass
     //when a moveable pulley is added there is no longer a SupportRope
     pulley_mass.RemoveSupportRope();
     PulleyController.AddMoveablePulleyToScene();
     PulleyController.GetPulleysInScene();   //add all the pulleys back to the list of pulleys
     PulleyController.CalculateMechanicalAdvantage();
     num_moveable_pulleys++;
 }