// Use this for initialization protected override IntPtr Init() { if (!joint1.Started) joint1.Start(); if (!joint2.Started) joint2.Start(); GearJointDef jd = new GearJointDef(other.body, body.body); jd.joint1 = joint1.joint; jd.joint2 = joint2.joint; jd.ratio = ratio; return API.CreateGearJoint( B2DWorld.instance.world, jd ); }
public static extern IntPtr CreateGearJoint( IntPtr w, GearJointDef def );
public static extern IntPtr CreateGearJoint(IntPtr w, GearJointDef def);