WeldJointDef d = (WeldJointDef)def;
return jniCreateWeldJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.localAnchorA.x, d.localAnchorA.y,
d.localAnchorB.x, d.localAnchorB.y, d.referenceAngle);
}
if (def.type == JointType.WheelJoint) {
WheelJointDef d = (WheelJointDef)def;
return jniCreateWheelJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.localAnchorA.x, d.localAnchorA.y,
d.localAnchorB.x, d.localAnchorB.y, d.localAxisA.x, d.localAxisA.y, d.enableMotor, d.maxMotorTorque, d.motorSpeed,
d.frequencyHz, d.dampingRatio);
}