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
Mostrar archivo 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_oe property

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

GroundAnchorB public_oe property

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

LengthA public_oe property

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

LengthB public_oe property

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

LocalAnchorA public_oe property

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

LocalAnchorB public_oe property

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

Ratio public_oe property

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