builder.setLocalAnchorB(vecToPb(j.getLocalAnchorB()));
builder.setMaxLength(j.getMaxLength());
break;
}
case WELD: {
WeldJoint j = (WeldJoint) joint;
builder.setType(PbJointType.WELD);
builder.setLocalAnchorA(vecToPb(j.getLocalAnchorA()));
builder.setLocalAnchorB(vecToPb(j.getLocalAnchorB()));
builder.setRefAngle(j.getReferenceAngle());
builder.setFrequency(j.getFrequency());
builder.setDampingRatio(j.getDampingRatio());
break;
}
default:
UnsupportedObjectException e = new UnsupportedObjectException("Unknown joint type: "
+ joint.getType(), Type.JOINT);