示例#1
0
    // 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 );
    }
示例#2
0
 public static extern IntPtr CreateGearJoint( IntPtr w, GearJointDef def );
示例#3
0
 public static extern IntPtr CreateGearJoint(IntPtr w, GearJointDef def);