Exemplo n.º 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 );
    }
Exemplo n.º 2
0
 public static extern IntPtr CreateGearJoint( IntPtr w, GearJointDef def );
Exemplo n.º 3
0
 public static extern IntPtr CreateGearJoint(IntPtr w, GearJointDef def);