PackageBox2D.Dynamics.Joints
Classpublic class b2Joint
Subclassesb2DistanceJoint, b2GearJoint, b2LineJoint, b2MouseJoint, b2PrismaticJoint, b2PulleyJoint, b2RevoluteJoint
Sourceb2Joint.as

The base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.

See also

b2JointDef


Public Methods
 MethodDefined by
  
Get the anchor point on body1 in world coordinates.
b2Joint
  
Get the anchor point on body2 in world coordinates.
b2Joint
  
Get the first body attached to this joint.
b2Joint
  
Get the second body attached to this joint.
b2Joint
  
Get the next joint the world joint list.
b2Joint
  
GetReactionForce(inv_dt:Number):b2Vec2
Get the reaction force on body2 at the joint anchor.
b2Joint
  
GetReactionTorque(inv_dt:Number):Number
Get the reaction torque on body2.
b2Joint
  
GetType():int
Get the type of the concrete joint.
b2Joint
  
Get the user data pointer.
b2Joint
  
SetUserData(data:*):void
Set the user data pointer.
b2Joint
Method detail
GetAnchor1()method
public function GetAnchor1():b2Vec2

Get the anchor point on body1 in world coordinates.

Returns
b2Vec2
GetAnchor2()method 
public function GetAnchor2():b2Vec2

Get the anchor point on body2 in world coordinates.

Returns
b2Vec2
GetBody1()method 
public function GetBody1():b2Body

Get the first body attached to this joint.

Returns
b2Body
GetBody2()method 
public function GetBody2():b2Body

Get the second body attached to this joint.

Returns
b2Body
GetNext()method 
public function GetNext():b2Joint

Get the next joint the world joint list.

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

Get the reaction force on body2 at the joint anchor.

Parameters
inv_dt:Number

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

Get the reaction torque on body2.

Parameters
inv_dt:Number

Returns
Number
GetType()method 
public function GetType():int

Get the type of the concrete joint.

Returns
int
GetUserData()method 
public function GetUserData():*

Get the user data pointer.

Returns
*
SetUserData()method 
public function SetUserData(data:*):void

Set the user data pointer.

Parameters
data:*