FrictionJointDef d = (FrictionJointDef)def;
return jniCreateFrictionJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.localAnchorA.x, d.localAnchorA.y,
d.localAnchorB.x, d.localAnchorB.y, d.maxForce, d.maxTorque);
}
if (def.type == JointType.GearJoint) {
GearJointDef d = (GearJointDef)def;
return jniCreateGearJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.joint1.addr, d.joint2.addr, d.ratio);
}
if (def.type == JointType.MouseJoint) {
MouseJointDef d = (MouseJointDef)def;
return jniCreateMouseJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.target.x, d.target.y, d.maxForce,