PackageBox2D.Dynamics.Joints
Classpublic class b2PulleyJointDef
Inheritanceb2PulleyJointDef Inheritance b2JointDef
Sourceb2PulleyJointDef.as

Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.

See also

b2PulleyJoint


Public Properties
 PropertyDefined by
 InheritedbodyA : b2Body
The first attached body.
b2JointDef
 InheritedbodyB : b2Body
The second attached body.
b2JointDef
 InheritedcollideConnected : Boolean
Set this flag to true if the attached bodies should collide.
b2JointDef
  groundAnchorA : b2Vec2
The first ground anchor in world coordinates.
b2PulleyJointDef
  groundAnchorB : b2Vec2
The second ground anchor in world coordinates.
b2PulleyJointDef
  lengthA : Number
The a reference length for the segment attached to bodyA.
b2PulleyJointDef
  lengthB : Number
The a reference length for the segment attached to bodyB.
b2PulleyJointDef
  localAnchorA : b2Vec2
The local anchor point relative to bodyA's origin.
b2PulleyJointDef
  localAnchorB : b2Vec2
The local anchor point relative to bodyB's origin.
b2PulleyJointDef
  maxLengthA : Number
The maximum length of the segment attached to bodyA.
b2PulleyJointDef
  maxLengthB : Number
The maximum length of the segment attached to bodyB.
b2PulleyJointDef
  ratio : Number
The pulley ratio, used to simulate a block-and-tackle.
b2PulleyJointDef
 Inheritedtype : int
The joint type is set automatically for concrete joint types.
b2JointDef
 InheriteduserData : *
Use this to attach application specific data to your joints.
b2JointDef
Public Methods
 MethodDefined by
  
b2PulleyJointDef
  
Initialize(bA:b2Body, bB:b2Body, gaA:b2Vec2, gaB:b2Vec2, anchorA:b2Vec2, anchorB:b2Vec2, r:Number):void
b2PulleyJointDef
Property detail
groundAnchorAproperty
public var groundAnchorA:b2Vec2

The first ground anchor in world coordinates. This point never moves.

groundAnchorBproperty 
public var groundAnchorB:b2Vec2

The second ground anchor in world coordinates. This point never moves.

lengthAproperty 
public var lengthA:Number

The a reference length for the segment attached to bodyA.

lengthBproperty 
public var lengthB:Number

The a reference length for the segment attached to bodyB.

localAnchorAproperty 
public var localAnchorA:b2Vec2

The local anchor point relative to bodyA's origin.

localAnchorBproperty 
public var localAnchorB:b2Vec2

The local anchor point relative to bodyB's origin.

maxLengthAproperty 
public var maxLengthA:Number

The maximum length of the segment attached to bodyA.

maxLengthBproperty 
public var maxLengthB:Number

The maximum length of the segment attached to bodyB.

ratioproperty 
public var ratio:Number

The pulley ratio, used to simulate a block-and-tackle.

Constructor detail
b2PulleyJointDef()constructor
public function b2PulleyJointDef()
Method detail
Initialize()method
public function Initialize(bA:b2Body, bB:b2Body, gaA:b2Vec2, gaB:b2Vec2, anchorA:b2Vec2, anchorB:b2Vec2, r:Number):voidParameters
bA:b2Body
 
bB:b2Body
 
gaA:b2Vec2
 
gaB:b2Vec2
 
anchorA:b2Vec2
 
anchorB:b2Vec2
 
r:Number