APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.physics.box2d.joints

public Class FrictionJointDef

extends JointDef
Class Inheritance
Imports
com.badlogic.gdx.math.Vector2, com.badlogic.gdx.physics.box2d.Body, .JointDef

Friction joint definition.

Field Summary

Modifier and TypeField and Description
public final Vector2
localAnchorA

The local anchor point relative to bodyA's origin.

public final Vector2
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.

Inherited from com.badlogic.gdx.physics.box2d.JointDef:
bodyAbodyBcollideConnectedtype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
initialize(Body bodyA, Body bodyB, Vector2 anchor)

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.

Field Detail

localAnchorAback to summary
public final Vector2 localAnchorA

The local anchor point relative to bodyA's origin.

localAnchorBback to summary
public final Vector2 localAnchorB

The local anchor point relative to bodyB's origin.

maxForceback to summary
public float maxForce

The maximum friction force in N.

maxTorqueback to summary
public float maxTorque

The maximum friction torque in N-m.

Constructor Detail

FrictionJointDefback to summary
public FrictionJointDef()

Method Detail

initializeback to summary
public void initialize(Body bodyA, Body bodyB, Vector2 anchor)

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.