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

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



Public Methods
 MethodDefined by
  
b2Joint
  
Create(def:b2JointDef, allocator:*):b2Joint
[static]
b2Joint
  
Destroy(joint:b2Joint, allocator:*):void
[static]
b2Joint
  
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
  
Get the reaction force on body2 at the joint anchor.
b2Joint
  
Get the reaction torque on body2.
b2Joint
  
GetType():int
Get the type of the concrete joint.
b2Joint
  
Get the user data pointer.
b2Joint
  
b2Joint
  
b2Joint
  
SetUserData(data:*):void
Set the user data pointer.
b2Joint
  
b2Joint
  
b2Joint
Public Constants
 ConstantDefined by
  e_atLowerLimit : int = 1
[static]
b2Joint
  e_atUpperLimit : int = 2
[static]
b2Joint
  e_distanceJoint : int = 3
[static]
b2Joint
  e_equalLimits : int = 3
[static]
b2Joint
  e_gearJoint : int = 6
[static]
b2Joint
  e_inactiveLimit : int = 0
[static]
b2Joint
  e_mouseJoint : int = 5
[static]
b2Joint
  e_prismaticJoint : int = 2
[static]
b2Joint
  e_pulleyJoint : int = 4
[static]
b2Joint
  e_revoluteJoint : int = 1
[static]
b2Joint
  e_unknownJoint : int = 0
[static]
b2Joint
Property detail
m_body1property
b2internal var m_body1:b2Body
m_body2property 
b2internal var m_body2:b2Body
m_collideConnectedproperty 
b2internal var m_collideConnected:Boolean
m_inv_dtproperty 
b2internal var m_inv_dt:Number
m_islandFlagproperty 
b2internal var m_islandFlag:Boolean
m_nextproperty 
b2internal var m_next:b2Joint
m_node1property 
b2internal var m_node1:b2JointEdge
m_node2property 
b2internal var m_node2:b2JointEdge
m_prevproperty 
b2internal var m_prev:b2Joint
m_typeproperty 
b2internal var m_type:int
Constructor detail
b2Joint()constructor
public function b2Joint(def:b2JointDef)Parameters
def:b2JointDef
Method detail
Create()method
public static function Create(def:b2JointDef, allocator:*):b2JointParameters
def:b2JointDef
 
allocator:*

Returns
b2Joint
Destroy()method 
public static function Destroy(joint:b2Joint, allocator:*):voidParameters
joint:b2Joint
 
allocator:*
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():b2Vec2

Get the reaction force on body2 at the joint anchor.

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

Get the reaction torque on body2.

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
*
InitPositionConstraints()method 
public function InitPositionConstraints():void
InitVelocityConstraints()method 
public function InitVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep
SetUserData()method 
public function SetUserData(data:*):void

Set the user data pointer.

Parameters
data:*
SolvePositionConstraints()method 
public function SolvePositionConstraints():Boolean

Returns
Boolean
SolveVelocityConstraints()method 
public function SolveVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep
Constant detail
e_atLowerLimitconstant
public static const e_atLowerLimit:int = 1
e_atUpperLimitconstant 
public static const e_atUpperLimit:int = 2
e_distanceJointconstant 
public static const e_distanceJoint:int = 3
e_equalLimitsconstant 
public static const e_equalLimits:int = 3
e_gearJointconstant 
public static const e_gearJoint:int = 6
e_inactiveLimitconstant 
public static const e_inactiveLimit:int = 0
e_mouseJointconstant 
public static const e_mouseJoint:int = 5
e_prismaticJointconstant 
public static const e_prismaticJoint:int = 2
e_pulleyJointconstant 
public static const e_pulleyJoint:int = 4
e_revoluteJointconstant 
public static const e_revoluteJoint:int = 1
e_unknownJointconstant 
public static const e_unknownJoint:int = 0