congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
org.jbox2d.dynamics.joints
Code IndexAdd Tabnine to your IDE (free)

How to use org.jbox2d.dynamics.joints

Best Java code snippets using org.jbox2d.dynamics.joints (Showing top 20 results out of 315)

origin: libgdx/libgdx

  /** Set/get the damping ratio (dimensionless). */
  public float getDampingRatio () {
    return joint.getDampingRatio();
  }
}
origin: libgdx/libgdx

  /** Get the gear ratio. */
  public float getRatio () {
    return joint.getRatio();
  }
}
origin: libgdx/libgdx

  /** Get the pulley ratio. */
  public float getRatio () {
    return joint.getRatio();
  }
}
origin: libgdx/libgdx

@Override
public boolean solvePositionConstraints(SolverData step) {
 return constrainEdges(step.positions);
}
origin: libgdx/libgdx

/** Set the motor speed in radians per second. */
public void setMotorSpeed (float speed) {
  motorSpeed = speed;
  joint.setMotorSpeed(speed);
}
origin: libgdx/libgdx

/** Get the motor speed, usually in meters per second. */
public float getMotorSpeed () {
  return joint.getMotorSpeed();
}
origin: libgdx/libgdx

  /** Get the maximum friction torque in N*m. */
  public float getMaxTorque () {
    return joint.getMaxTorque();
  }
}
origin: libgdx/libgdx

  /** Set/get damping ratio. */
  public float getDampingRatio () {
    return joint.getDampingRatio();
  }
}
origin: libgdx/libgdx

/** Set/get the frequency in Hertz. */
public float getFrequency () {
  return joint.getFrequency();
}
origin: libgdx/libgdx

/** Get the current joint translation, usually in meters. */
public float getJointTranslation () {
  return joint.getJointTranslation();
}
origin: libgdx/libgdx

/** Enable/disable the joint limit. */
public void enableLimit (boolean flag) {
  joint.enableLimit(flag);
}
origin: libgdx/libgdx

/** Set/get frequency in Hz. */
public float getFrequency () {
  return joint.getFrequency();
}
origin: libgdx/libgdx

/** Set the joint limits in radians.
 * @param upper */
public void setLimits (float lower, float upper) {
  joint.setLimits(lower, upper);
}
origin: libgdx/libgdx

/** Set the gear ratio. */
public void setRatio (float ratio) {
  joint.setRatio(ratio);
}
origin: libgdx/libgdx

/** Set/Get the maximum motor force, usually in N-m. */
public void setMaxMotorTorque (float torque) {
  joint.setMaxMotorTorque(torque);
}
origin: libgdx/libgdx

/** Get the current motor torque given the inverse time step, usually in N-m. */
public float getMotorTorque (float invDt) {
  return joint.getMotorTorque(invDt);
}
origin: libgdx/libgdx

/** Set/get the damping ratio (dimensionless). */
public void setDampingRatio (float ratio) {
  joint.setDampingRatio(ratio);
}
origin: libgdx/libgdx

/** Set/get the maximum force in Newtons. */
public void setMaxForce (float force) {
  joint.setMaxForce(force);
}
origin: libgdx/libgdx

/** Get the reaction torque on body2 in N*m. */
public float getReactionTorque (float inv_dt) {
  return joint.getReactionTorque(inv_dt);
}
origin: libgdx/libgdx

/** Short-cut function to determine if either body is inactive. */
public boolean isActive () {
  return joint.isActive();
}
org.jbox2d.dynamics.joints

Most used classes

  • RevoluteJoint
    A revolute joint constrains two bodies to share a common point while they are free to rotate about t
  • ConstantVolumeJointDef
    Definition for a ConstantVolumeJoint, which connects a group a bodies together so they maintain a co
  • DistanceJointDef
    Distance joint definition. This requires defining an anchor point on both bodies and the non-zero le
  • GearJoint
    A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joi
  • MouseJoint
    A mouse joint is used to make a point on a body track a specified world point. This a soft constrain
  • PulleyJoint,
  • RevoluteJointDef,
  • WheelJoint,
  • ConstantVolumeJoint,
  • DistanceJoint,
  • FrictionJoint,
  • Joint,
  • MotorJoint,
  • PrismaticJointDef,
  • RopeJoint,
  • WeldJoint,
  • FrictionJointDef,
  • JointEdge,
  • MouseJointDef
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now