PackageBox2D.Dynamics.Joints
Classpublic class b2FrictionJoint
Inheritanceb2FrictionJoint Inheritance b2Joint
Sourceb2FrictionJoint.as

Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction.

See also

b2FrictionJointDef


Public Properties
 PropertyDefined by
  m_angularMass : Number
b2FrictionJoint
  m_linearMass : b2Mat22
b2FrictionJoint
Public Methods
 MethodDefined by
  
Get the anchor point on bodyA in world coordinates.
b2FrictionJoint
  
Get the anchor point on bodyB in world coordinates.
b2FrictionJoint
 Inherited
Get the first body attached to this joint.
b2Joint
 Inherited
Get the second body attached to this joint.
b2Joint
  
GetMaxForce():Number
b2FrictionJoint
  
GetMaxTorque():Number
b2FrictionJoint
 Inherited
Get the next joint the world joint list.
b2Joint
  
GetReactionForce(inv_dt:Number):b2Vec2
Get the reaction force on body2 at the joint anchor in Newtons.
b2FrictionJoint
  
GetReactionTorque(inv_dt:Number):Number
Get the reaction torque on body2 in N.
b2FrictionJoint
 Inherited
GetType():int
Get the type of the concrete joint.
b2Joint
 Inherited
Get the user data pointer.
b2Joint
 Inherited
IsActive():Boolean
Short-cut function to determine if either body is inactive.
b2Joint
  
SetMaxForce(force:Number):void
b2FrictionJoint
  
SetMaxTorque(torque:Number):void
b2FrictionJoint
 Inherited
SetUserData(data:*):void
Set the user data pointer.
b2Joint
Property detail
m_angularMassproperty
public var m_angularMass:Number
m_linearMassproperty 
public var m_linearMass:b2Mat22
Method detail
GetAnchorA()method
public override function GetAnchorA():b2Vec2

Get the anchor point on bodyA in world coordinates.

Returns
b2Vec2
GetAnchorB()method 
public override function GetAnchorB():b2Vec2

Get the anchor point on bodyB in world coordinates.

Returns
b2Vec2
GetMaxForce()method 
public function GetMaxForce():Number

Returns
Number
GetMaxTorque()method 
public function GetMaxTorque():Number

Returns
Number
GetReactionForce()method 
public override function GetReactionForce(inv_dt:Number):b2Vec2

Get the reaction force on body2 at the joint anchor in Newtons.

Parameters
inv_dt:Number

Returns
b2Vec2
GetReactionTorque()method 
public override function GetReactionTorque(inv_dt:Number):Number

Get the reaction torque on body2 in N.

Parameters
inv_dt:Number

Returns
Number
SetMaxForce()method 
public function SetMaxForce(force:Number):voidParameters
force:Number
SetMaxTorque()method 
public function SetMaxTorque(torque:Number):voidParameters
torque:Number