Example #1
0
 public Brake(agx.Hinge hinge, double[] brakeForceRange)
 {
     // Initialize the brakes on the hinges
     m_hinge = hinge;
     m_hinge.getLock1D().setEnable(false);
     m_hinge.getLock1D().setForceRange(new agx.RangeReal(brakeForceRange[0], brakeForceRange[1]));
     m_hinge.getLock1D().setCompliance(1E-12);
     update();
 }
Example #2
0
 /// <summary>
 /// Enable/Disable the brakes
 /// </summary>
 /// <param name="flag"></param>
 public void setEnable(bool flag)
 {
     m_hinge.getLock1D().setEnable(flag);
     m_hinge.getLock1D().setPosition(m_hinge.getAngle());
 }