FrictionJointDef class
class FrictionJointDef extends JointDef { /** The local anchor point relative to bodyA's origin. */ final Vector2 localAnchorA; /** The local anchor point relative to bodyB's origin. */ final Vector2 localAnchorB; /** The maximum friction force in N. */ double maxForce; /** The maximum friction torque in N-m. */ double maxTorque; FrictionJointDef() : super(), localAnchorA = new Vector2(0.0, 0.0), localAnchorB = new Vector2(0.0, 0.0), maxForce = 0.0, maxTorque = 0.0 { type = JointType.FRICTION; } void initialize(Body bA, Body bB, Vector2 anchor) { bodyA = bA; bodyB = bB; bA.getLocalPointToOut(anchor, localAnchorA); bB.getLocalPointToOut(anchor, localAnchorB); } }
Extends
JointDef > FrictionJointDef
Constructors
new FrictionJointDef() #
FrictionJointDef() : super(), localAnchorA = new Vector2(0.0, 0.0), localAnchorB = new Vector2(0.0, 0.0), maxForce = 0.0, maxTorque = 0.0 { type = JointType.FRICTION; }
Properties
bool collideConnected #
inherited from JointDef
Set this flag to true if the attached bodies should collide.
bool collideConnected
final Vector2 localAnchorA #
The local anchor point relative to bodyA's origin.
final Vector2 localAnchorA
final Vector2 localAnchorB #
The local anchor point relative to bodyB's origin.
final Vector2 localAnchorB