C# Class Box2D.Dynamics.Joints.PulleyJointDef

Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, and a pulley ratio.
Inheritance: JointDef
Show file Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
GroundAnchorA Box2D.Common.Vec2
GroundAnchorB Box2D.Common.Vec2
LengthA float
LengthB float
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2
Ratio float

Public Methods

Method Description
Initialize ( Body b1, Body b2, Vec2 ga1, Vec2 ga2, Vec2 anchor1, Vec2 anchor2, float r ) : void

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

PulleyJointDef ( ) : System.Diagnostics

Method Details

Initialize() public method

Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
public Initialize ( Body b1, Body b2, Vec2 ga1, Vec2 ga2, Vec2 anchor1, Vec2 anchor2, float r ) : void
b1 Body
b2 Body
ga1 Box2D.Common.Vec2
ga2 Box2D.Common.Vec2
anchor1 Box2D.Common.Vec2
anchor2 Box2D.Common.Vec2
r float
return void

PulleyJointDef() public method

public PulleyJointDef ( ) : System.Diagnostics
return System.Diagnostics

Property Details

GroundAnchorA public property

The first ground anchor in world coordinates. This point never moves.
public Vec2,Box2D.Common GroundAnchorA
return Box2D.Common.Vec2

GroundAnchorB public property

The second ground anchor in world coordinates. This point never moves.
public Vec2,Box2D.Common GroundAnchorB
return Box2D.Common.Vec2

LengthA public property

The a reference length for the segment attached to bodyA.
public float LengthA
return float

LengthB public property

The a reference length for the segment attached to bodyB.
public float LengthB
return float

LocalAnchorA public property

The local anchor point relative to bodyA's origin.
public Vec2,Box2D.Common LocalAnchorA
return Box2D.Common.Vec2

LocalAnchorB public property

The local anchor point relative to bodyB's origin.
public Vec2,Box2D.Common LocalAnchorB
return Box2D.Common.Vec2

Ratio public property

The pulley ratio, used to simulate a block-and-tackle.
public float Ratio
return float