Package com.badlogic.gdx.physics.box2d.joints

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


    return joint;
  }

  private long createProperJoint (JointDef def) {
    if (def.type == JointType.DistanceJoint) {
      DistanceJointDef d = (DistanceJointDef)def;
      return jniCreateDistanceJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.localAnchorA.x, d.localAnchorA.y,
        d.localAnchorB.x, d.localAnchorB.y, d.length, d.frequencyHz, d.dampingRatio);
    }
    if (def.type == JointType.FrictionJoint) {
      FrictionJointDef d = (FrictionJointDef)def;
View Full Code Here


    return joint;
  }

  private long createProperJoint (JointDef def) {
    if (def.type == JointType.DistanceJoint) {
      DistanceJointDef d = (DistanceJointDef)def;
      return jniCreateDistanceJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.localAnchorA.x, d.localAnchorA.y,
        d.localAnchorB.x, d.localAnchorB.y, d.length, d.frequencyHz, d.dampingRatio);
    }
    if (def.type == JointType.FrictionJoint) {
      FrictionJointDef d = (FrictionJointDef)def;
View Full Code Here

    return joint;
  }

  private long createProperJoint (JointDef def) {
    if (def.type == JointType.DistanceJoint) {
      DistanceJointDef d = (DistanceJointDef)def;
      return jniCreateDistanceJoint(addr, d.bodyA.addr, d.bodyB.addr, d.collideConnected, d.localAnchorA.x, d.localAnchorA.y,
        d.localAnchorB.x, d.localAnchorB.y, d.length, d.frequencyHz, d.dampingRatio);
    }
    if (def.type == JointType.FrictionJoint) {
      FrictionJointDef d = (FrictionJointDef)def;
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.physics.box2d.joints.DistanceJointDef

Copyright © 2018 www.massapicom. 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.