public int GetKeyIndex()
 {
     return(hingeConstraint.GetKeyIndex());
 }