Box2D: b2PulleyJointDef Struct Reference

Box2D

b2PulleyJointDef Struct Reference

Pulley joint definition. More...

Inheritance diagram for b2PulleyJointDef:

b2JointDef

List of all members.

Public Member Functions

void Initialize (b2Body *body1, b2Body *body2, const b2Vec2 &groundAnchor1, const b2Vec2 &groundAnchor2, const b2Vec2 &anchor1, const b2Vec2 &anchor2, float32 ratio)
 Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.

Public Attributes

b2Vec2 groundAnchor1
 The first ground anchor in world coordinates. This point never moves.
b2Vec2 groundAnchor2
 The second ground anchor in world coordinates. This point never moves.
b2Vec2 localAnchor1
 The local anchor point relative to body1's origin.
b2Vec2 localAnchor2
 The local anchor point relative to body2's origin.
float32 length1
 The a reference length for the segment attached to body1.
float32 maxLength1
 The maximum length of the segment attached to body1.
float32 length2
 The a reference length for the segment attached to body2.
float32 maxLength2
 The maximum length of the segment attached to body2.
float32 ratio
 The pulley ratio, used to simulate a block-and-tackle.

Detailed Description

Pulley joint definition.

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


The documentation for this struct was generated from the following files:
  • b2PulleyJoint.h
  • b2PulleyJoint.cpp

Generated on Sun Apr 13 15:21:27 2008 for Box2D by  doxygen 1.5.4