com.badlogic.gdx.physics.box2d.joints
Class FrictionJointDef
java.lang.Object
com.badlogic.gdx.physics.box2d.JointDef
com.badlogic.gdx.physics.box2d.joints.FrictionJointDef
public class FrictionJointDef
- extends JointDef
Friction joint definition.
Method Summary |
void |
initialize(Body bodyA,
Body bodyB,
Vector2 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 |
localAnchorA
public final Vector2 localAnchorA
- The local anchor point relative to bodyA's origin.
localAnchorB
public final Vector2 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.
FrictionJointDef
public FrictionJointDef()
initialize
public void initialize(Body bodyA,
Body bodyB,
Vector2 anchor)
- Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)