public class FrictionJointDef
Friction joint definition.
Fields
public final Vec2 localAnchorA | The local anchor point relative to bodyA’s origin. |
public final Vec2 localAnchorB | The local anchor point relative to bodyB’s origin. |
public float maxForce | The maximum friction force in N. |
public float maxTorque | The maximum friction torque in N-m. |
Constructors
public FrictionJointDef() |
Methods
public void initialize(Body bA, Body bB, Vec2 anchor) | Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis. |
Inherited fields
Inherited methods
Field details
localAnchorA
public final Vec2 localAnchorAThe local anchor point relative to bodyA’s origin.
localAnchorB
public final Vec2 localAnchorBThe local anchor point relative to bodyB’s origin.
maxForce
public float maxForceThe maximum friction force in N.
maxTorque
public float maxTorqueThe maximum friction torque in N-m.
Constructor details
FrictionJointDef
public FrictionJointDef()Method details
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.