return joint;
}
private long createProperJoint (JointDef def) {
if (def.type == JointType.DistanceJoint) {
DistanceJointDef d = (DistanceJointDef)def;
return jniCreateDistanceJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.localAnchorA.x, d.localAnchorA.y,
d.localAnchorB.x, d.localAnchorB.y, d.length, d.frequencyHz, d.dampingRatio);
}
if (def.type == JointType.FrictionJoint) {
FrictionJointDef d = (FrictionJointDef)def;