Examples of MotorJointDef


Examples of com.badlogic.gdx.physics.box2d.joints.MotorJointDef

    if (def.type == JointType.GearJoint) {
      GearJointDef d = (GearJointDef)def;
      return jniCreateGearJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.joint1.addr, d.joint2.addr, d.ratio);
    }
    if (def.type == JointType.MotorJoint) {
      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;
View Full Code Here

Examples of org.jbox2d.dynamics.joints.MotorJointDef

      fd.shape = shape;
      fd.friction = 0.6f;
      fd.density = 2.0f;
      body.createFixture(fd);

      MotorJointDef mjd = new MotorJointDef();
      mjd.initialize(getGroundBody(), body);
      mjd.maxForce = 1000.0f;
      mjd.maxTorque = 1000.0f;
      m_joint = (MotorJoint) m_world.createJoint(mjd);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.