Public Member Functions | Public Attributes
b2PulleyJointDef Struct Reference

#include <b2PulleyJoint.h>

Inheritance diagram for b2PulleyJointDef:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 b2PulleyJointDef ()
void Initialize (b2Body *bodyA, b2Body *bodyB, const b2Vec2 &groundAnchorA, const b2Vec2 &groundAnchorB, const b2Vec2 &anchorA, const b2Vec2 &anchorB, float32 ratio)
 Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.

Public Attributes

b2Vec2 groundAnchorA
 The first ground anchor in world coordinates. This point never moves.
b2Vec2 groundAnchorB
 The second ground anchor in world coordinates. This point never moves.
float32 lengthA
 The a reference length for the segment attached to bodyA.
float32 lengthB
 The a reference length for the segment attached to bodyB.
b2Vec2 localAnchorA
 The local anchor point relative to bodyA's origin.
b2Vec2 localAnchorB
 The local anchor point relative to bodyB's origin.
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, and a pulley ratio.

Definition at line 28 of file b2PulleyJoint.h.


Constructor & Destructor Documentation

Definition at line 30 of file b2PulleyJoint.h.


Member Function Documentation

void b2PulleyJointDef::Initialize ( b2Body bodyA,
b2Body bodyB,
const b2Vec2 groundAnchorA,
const b2Vec2 groundAnchorB,
const b2Vec2 anchorA,
const b2Vec2 anchorB,
float32  ratio 
)

Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.

Definition at line 35 of file b2PulleyJoint.cpp.


Member Data Documentation

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

Definition at line 50 of file b2PulleyJoint.h.

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

Definition at line 53 of file b2PulleyJoint.h.

The a reference length for the segment attached to bodyA.

Definition at line 62 of file b2PulleyJoint.h.

The a reference length for the segment attached to bodyB.

Definition at line 65 of file b2PulleyJoint.h.

The local anchor point relative to bodyA's origin.

Definition at line 56 of file b2PulleyJoint.h.

The local anchor point relative to bodyB's origin.

Definition at line 59 of file b2PulleyJoint.h.

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

Definition at line 68 of file b2PulleyJoint.h.


The documentation for this struct was generated from the following files:


mvsim
Author(s):
autogenerated on Thu Sep 7 2017 09:27:49