Class FrictionJointDef


  • public class FrictionJointDef
    extends JointDef
    Friction joint definition.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​(Body bA, Body bB, Vec2 anchor)
      Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • localAnchorA

        public final Vec2 localAnchorA
        The local anchor point relative to bodyA's origin.
      • localAnchorB

        public final Vec2 localAnchorB
        The local anchor point relative to bodyB's origin.
      • maxForce

        public float maxForce
        The maximum friction force in N.
      • maxTorque

        public float maxTorque
        The maximum friction torque in N-m.
    • Constructor Detail

      • FrictionJointDef

        public FrictionJointDef()
    • Method Detail

      • initialize

        public void initialize​(Body bA,
                               Body bB,
                               Vec2 anchor)
        Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.