예제 #1
0
 public WeldTable(Skin skin, WeldJoint joint) {
   super(skin, joint, JointType.WeldJoint);
   anchorTable = new VertexTable(joint.getAnchor(), skin);
   referenceAngleField = new TextField(joint.getReferenceAngle() + "", skin);
   referenceAngleField.setMessageText("<reference angle>");
   add("Anchor: ");
   add(anchorTable);
   row();
   add("Reference Angle: ");
   add(referenceAngleField);
 }
예제 #2
0
 public void apply(WeldJoint joint) {
   super.apply(joint);
   joint.setAnchor(anchorTable.getVertex());
   joint.setReferenceAngle(Float.parseFloat(referenceAngleField.getText()));
 }