PackageBox2D.Dynamics.Joints
Classpublic class b2FrictionJointDef
Inheritanceb2FrictionJointDef Inheritance b2JointDef
Sourceb2FrictionJointDef.as

Friction joint defintion

See also

b2FrictionJoint


Public Properties
 PropertyDefined by
 InheritedbodyA : b2Body
The first attached body.
b2JointDef
 InheritedbodyB : b2Body
The second attached body.
b2JointDef
 InheritedcollideConnected : Boolean
Set this flag to true if the attached bodies should collide.
b2JointDef
  localAnchorA : b2Vec2
The local anchor point relative to bodyA's origin.
b2FrictionJointDef
  localAnchorB : b2Vec2
The local anchor point relative to bodyB's origin.
b2FrictionJointDef
  maxForce : Number
The maximun force in N.
b2FrictionJointDef
  maxTorque : Number
The maximun friction torque in N-m
b2FrictionJointDef
 Inheritedtype : int
The joint type is set automatically for concrete joint types.
b2JointDef
 InheriteduserData : *
Use this to attach application specific data to your joints.
b2JointDef
Public Methods
 MethodDefined by
  
b2FrictionJointDef
  
Initialize(bA:b2Body, bB:b2Body, anchor:b2Vec2):void
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
b2FrictionJointDef
Property detail
localAnchorAproperty
public var localAnchorA:b2Vec2

The local anchor point relative to bodyA's origin.

localAnchorBproperty 
public var localAnchorB:b2Vec2

The local anchor point relative to bodyB's origin.

maxForceproperty 
public var maxForce:Number

The maximun force in N.

maxTorqueproperty 
public var maxTorque:Number

The maximun friction torque in N-m

Constructor detail
b2FrictionJointDef()constructor
public function b2FrictionJointDef()
Method detail
Initialize()method
public function Initialize(bA:b2Body, bB:b2Body, anchor:b2Vec2):void

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

Parameters
bA:b2Body
 
bB:b2Body
 
anchor:b2Vec2