Package org.jbox2d.dynamics.joints
Class FrictionJoint
java.lang.Object
org.jbox2d.dynamics.joints.Joint
org.jbox2d.dynamics.joints.FrictionJoint
- Author:
- Daniel Murphy
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFrictionJoint(WorldPool argWorldPool, FrictionJointDef def) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAnchorA(Vec2 argOut) Get the anchor point on bodyA in world coordinates.voidgetAnchorB(Vec2 argOut) Get the anchor point on bodyB in world coordinates.Get the local anchor point relative to bodyA's origin.Get the local anchor point relative to bodyB's origin.floatGet the maximum friction force in N.floatGet the maximum friction torque in N*m.voidgetReactionForce(float invDt, Vec2 argOut) Get the reaction force on body2 at the joint anchor in Newtons.floatgetReactionTorque(float invDt) Get the reaction torque on body2 in N*m.voidInternalvoidsetMaxForce(float force) Set the maximum friction force in N.voidsetMaxTorque(float torque) Set the maximum friction torque in N*m.booleanThis returns true if the position errors are within tolerance.voidInternalMethods inherited from class org.jbox2d.dynamics.joints.Joint
create, destroy, destructor, getBodyA, getBodyB, getCollideConnected, getNext, getType, getUserData, isActive, setUserData
-
Constructor Details
-
FrictionJoint
-
-
Method Details
-
getLocalAnchorA
Get the local anchor point relative to bodyA's origin.- Returns:
- The local anchor point relative to bodyA's origin.
-
getLocalAnchorB
Get the local anchor point relative to bodyB's origin.- Returns:
- The local anchor point relative to bodyB's origin.
-
getAnchorA
Description copied from class:JointGet the anchor point on bodyA in world coordinates.- Specified by:
getAnchorAin classJoint
-
getAnchorB
Description copied from class:JointGet the anchor point on bodyB in world coordinates.- Specified by:
getAnchorBin classJoint
-
getReactionForce
Description copied from class:JointGet the reaction force on body2 at the joint anchor in Newtons.- Specified by:
getReactionForcein classJoint
-
getReactionTorque
public float getReactionTorque(float invDt) Description copied from class:JointGet the reaction torque on body2 in N*m.- Specified by:
getReactionTorquein classJoint
-
setMaxForce
public void setMaxForce(float force) Set the maximum friction force in N. -
getMaxForce
public float getMaxForce()Get the maximum friction force in N. -
setMaxTorque
public void setMaxTorque(float torque) Set the maximum friction torque in N*m. -
getMaxTorque
public float getMaxTorque()Get the maximum friction torque in N*m. -
initVelocityConstraints
Description copied from class:JointInternal- Specified by:
initVelocityConstraintsin classJoint- See Also:
-
solveVelocityConstraints
Description copied from class:JointInternal- Specified by:
solveVelocityConstraintsin classJoint
-
solvePositionConstraints
Description copied from class:JointThis returns true if the position errors are within tolerance. Internal.- Specified by:
solvePositionConstraintsin classJoint
-