PackageBox2D.Dynamics.Joints
Classpublic class b2PulleyJoint
Inheritanceb2PulleyJoint Inheritance b2Joint
Sourceb2PulleyJoint.as

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.

See also

b2PulleyJointDef


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

Get the anchor point on body1 in world coordinates.

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

Get the anchor point on body2 in world coordinates.

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

Get the first ground anchor.

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

Get the second ground anchor.

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

Get the current length of the segment attached to body1.

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

Get the current length of the segment attached to body2.

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

Get the pulley ratio.

Returns
Number
GetReactionForce()method 
public override 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 override function GetReactionTorque(inv_dt:Number):Number

Get the reaction torque on body2.

Parameters
inv_dt:Number

Returns
Number