PackageBox2D.Dynamics.Joints
Classpublic class b2Joint
Inheritanceb2Joint Inheritance Object
Subclasses b2DistanceJoint, b2GearJoint, b2MouseJoint, b2PrismaticJoint, b2PulleyJoint, b2RevoluteJoint



Public Properties
 PropertyDefined By
  m_body1 : b2Body
b2Joint
  m_body2 : b2Body
b2Joint
  m_collideConnected : Boolean
b2Joint
  m_inv_dt : Number
b2Joint
  m_islandFlag : Boolean
b2Joint
  m_next : b2Joint
b2Joint
  m_node1 : b2JointEdge
b2Joint
  m_node2 : b2JointEdge
b2Joint
  m_prev : b2Joint
b2Joint
  m_type : int
b2Joint
  m_userData : *
b2Joint
Public Methods
 MethodDefined By
  
b2Joint
  
Create(def:b2JointDef, allocator:*):b2Joint
[static]
b2Joint
  
Destroy(joint:b2Joint, allocator:*):void
[static]
b2Joint
  
b2Joint
  
b2Joint
  
b2Joint
  
b2Joint
  
b2Joint
  
b2Joint
  
b2Joint
  
GetType():int
b2Joint
  
b2Joint
  
b2Joint
  
b2Joint
  
SetUserData(data:*):void
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
public var m_body1:b2Body

m_body2property 
public var m_body2:b2Body

m_collideConnectedproperty 
public var m_collideConnected:Boolean

m_inv_dtproperty 
public var m_inv_dt:Number

m_islandFlagproperty 
public var m_islandFlag:Boolean

m_nextproperty 
public var m_next:b2Joint

m_node1property 
public var m_node1:b2JointEdge

m_node2property 
public var m_node2:b2JointEdge

m_prevproperty 
public var m_prev:b2Joint

m_typeproperty 
public var m_type:int

m_userDataproperty 
public var m_userData:*

Constructor Detail
b2Joint()Constructor
public function b2Joint(def:b2JointDef)



Parameters
def:b2JointDef
Method Detail
Create()method
public static function Create(def:b2JointDef, allocator:*):b2Joint

Parameters

def:b2JointDef
 
allocator:*

Returns
b2Joint
Destroy()method 
public static function Destroy(joint:b2Joint, allocator:*):void

Parameters

joint:b2Joint
 
allocator:*

GetAnchor1()method 
public function GetAnchor1():b2Vec2

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

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

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

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

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

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

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

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

Returns
*
InitPositionConstraints()method 
public function InitPositionConstraints():void

InitVelocityConstraints()method 
public function InitVelocityConstraints(step:b2TimeStep):void

Parameters

step:b2TimeStep

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

Parameters

data:*

SolvePositionConstraints()method 
public function SolvePositionConstraints():Boolean

Returns
Boolean
SolveVelocityConstraints()method 
public function SolveVelocityConstraints(step:b2TimeStep):void

Parameters

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