The base joint class. Joints are used to constraint two bodies together in
various fashions. Some joints also feature limits and motors.
b2internal var m_body1:b2Body
b2internal var m_body2:b2Body
b2internal var m_collideConnected:Boolean
b2internal var m_inv_dt:Number
b2internal var m_islandFlag:Boolean
b2internal var m_next:b2Joint
b2internal var m_node1:b2JointEdge
b2internal var m_node2:b2JointEdge
b2internal var m_prev:b2Joint
b2internal var m_type:int
public function b2Joint(def:b2JointDef)
Parameters
public static function Create(def:b2JointDef, allocator:*):b2Joint
Parameters
Returns
public static function Destroy(joint:b2Joint, allocator:*):void
Parameters
public function GetAnchor1():b2Vec2
Get the anchor point on body1 in world coordinates.
Returns
public function GetAnchor2():b2Vec2
Get the anchor point on body2 in world coordinates.
Returns
public function GetBody1():b2Body
Get the first body attached to this joint.
Returns
public function GetBody2():b2Body
Get the second body attached to this joint.
Returns
public function GetNext():b2Joint
Get the next joint the world joint list.
Returns
public function GetReactionForce():b2Vec2
Get the reaction force on body2 at the joint anchor.
Returns
public function GetReactionTorque():Number
Get the reaction torque on body2.
Returns
public function GetType():int
Get the type of the concrete joint.
Returns
public function GetUserData():*
Get the user data pointer.
Returns
public function InitPositionConstraints():void
public function InitVelocityConstraints(step:b2TimeStep):void
Parameters
public function SetUserData(data:*):void
Set the user data pointer.
Parameters
public function SolvePositionConstraints():Boolean
Returns
public function SolveVelocityConstraints(step:b2TimeStep):void
Parameters
public static const e_atLowerLimit:int = 1
public static const e_atUpperLimit:int = 2
public static const e_distanceJoint:int = 3
public static const e_equalLimits:int = 3
public static const e_gearJoint:int = 6
public static const e_inactiveLimit:int = 0
public static const e_mouseJoint:int = 5
public static const e_prismaticJoint:int = 2
public static const e_pulleyJoint:int = 4
public static const e_revoluteJoint:int = 1
public static const e_unknownJoint:int = 0