MotorJointDef d = (MotorJointDef)def;
return jniCreateMotorJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.linearOffset.x, d.linearOffset.y,
d.angularOffset, d.maxForce, d.maxTorque, d.correctionFactor);
}
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,
d.frequencyHz, d.dampingRatio);
}
if (def.type == JointType.PrismaticJoint) {
PrismaticJointDef d = (PrismaticJointDef)def;