PackageBox2D.Dynamics.Joints
Classpublic class b2PulleyJoint
Inheritanceb2PulleyJoint Inheritance b2Joint

The pulley joint is connected to two bodies and two fixed ground points. The pulley supports a ratio such that: length1 + ratio length2 <= constant Yes, the force transmitted is scaled by the ratio. The pulley also enforces a maximum length limit on both sides. This is useful to prevent one side of the pulley hitting the top.



Public Methods
 MethodDefined by
  
b2PulleyJoint
 Inherited
Create(def:b2JointDef, allocator:*):b2Joint
[static]
b2Joint
 Inherited
Destroy(joint:b2Joint, allocator:*):void
[static]
b2Joint
  
b2PulleyJoint
  
b2PulleyJoint
 Inherited
Get the first body attached to this joint.
b2Joint
 Inherited
Get the second body attached to this joint.
b2Joint
  
b2PulleyJoint
  
b2PulleyJoint
  
GetLength1():Number
b2PulleyJoint
  
GetLength2():Number
b2PulleyJoint
 Inherited
Get the next joint the world joint list.
b2Joint
  
GetRatio():Number
b2PulleyJoint
  
b2PulleyJoint
  
b2PulleyJoint
 Inherited
GetType():int
Get the type of the concrete joint.
b2Joint
 Inherited
Get the user data pointer.
b2Joint
 Inherited
b2Joint
  
b2PulleyJoint
 Inherited
SetUserData(data:*):void
Set the user data pointer.
b2Joint
  
b2PulleyJoint
  
b2PulleyJoint
Public Constants
 ConstantDefined by
  b2_minPulleyLength : Number = 2.0
[static]
b2PulleyJoint
 Inheritede_atLowerLimit : int = 1
[static]
b2Joint
 Inheritede_atUpperLimit : int = 2
[static]
b2Joint
 Inheritede_distanceJoint : int = 3
[static]
b2Joint
 Inheritede_equalLimits : int = 3
[static]
b2Joint
 Inheritede_gearJoint : int = 6
[static]
b2Joint
 Inheritede_inactiveLimit : int = 0
[static]
b2Joint
 Inheritede_mouseJoint : int = 5
[static]
b2Joint
 Inheritede_prismaticJoint : int = 2
[static]
b2Joint
 Inheritede_pulleyJoint : int = 4
[static]
b2Joint
 Inheritede_revoluteJoint : int = 1
[static]
b2Joint
 Inheritede_unknownJoint : int = 0
[static]
b2Joint
Constructor detail
b2PulleyJoint()constructor
public function b2PulleyJoint(def:b2PulleyJointDef)Parameters
def:b2PulleyJointDef
Method detail
GetAnchor1()method
public override function GetAnchor1():b2Vec2

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

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

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

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

Returns
Number
GetLength2()method 
public function GetLength2():Number

Returns
Number
GetRatio()method 
public function GetRatio():Number

Returns
Number
GetReactionForce()method 
public override function GetReactionForce():b2Vec2

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

Returns
Number
InitVelocityConstraints()method 
public override function InitVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep
SolvePositionConstraints()method 
public override function SolvePositionConstraints():Boolean

Returns
Boolean
SolveVelocityConstraints()method 
public override function SolveVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep
Constant detail
b2_minPulleyLengthconstant
public static const b2_minPulleyLength:Number = 2.0