/// <summary> /// creates a few joint restraints /// </summary> void testJoints() { myConstructorController.createJointRestraint(origin, 'f'); myConstructorController.createJointRestraint(p1, 'r'); myConstructorController.createJointRestraint(p1, 'f'); // overwrite myConstructorController.createJointRestraint(p2, 'p'); myConstructorController.createJointRestraint(p3, 'p'); myConstructorController.createJointRestraint(p4, 'r'); myConstructorController.createJointRestraint(p5, 'r'); myConstructorController.deleteJointRestraint(p5); // delete JR myConstructorController.createJointRestraint(p6, 'f'); // This is meant to fail, as there is no frame endpoint here }
public void deleteJoints() { if (isWait) { // user has confirmed they want to delete List <GridNode> nodes = mySelectionController.GetSelectedNodes(); foreach (GridNode n in nodes) { myConstructorController.deleteJointRestraint(n.getLocation()); } StopCoroutine(deleteCheck()); deleteButtonText.text = deleteText; isWait = false; } else { // delete button has not been pressed yet deleteButtonText.text = confirmText; StartCoroutine(deleteCheck()); } }