C# Class Box2D.Dynamics.Joints.PulleyJoint

The pulley joint is connected to two bodies and two fixed ground points. The pulley supports a ratio such that: length1 + ratio * length2 <= constant Yes, the force transmitted is scaled by the ratio. Warning: the pulley joint can get a bit squirrelly by itself. They often work better when combined with prismatic joints. You should also cover the the anchor points with static shapes to prevent one side from going to zero length.
Inheritance: Joint
Show file Open project: gerich-home/box2dnet

Public Properties

Property Type Description
IndexA int
IndexB int
InvIA float
InvIB float
InvMassA float
InvMassB float
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2
RA Box2D.Common.Vec2
RB Box2D.Common.Vec2

Public Methods

Method Description
GetAnchorA ( Vec2 argOut ) : void
GetAnchorB ( Vec2 argOut ) : void
GetReactionForce ( float inv_dt, Vec2 argOut ) : void
GetReactionTorque ( float inv_dt ) : float
InitVelocityConstraints ( SolverData data ) : void
PulleyJoint ( IWorldPool argWorldPool, PulleyJointDef def ) : System.Diagnostics
SolvePositionConstraints ( SolverData data ) : bool
SolveVelocityConstraints ( SolverData data ) : void

Method Details

GetAnchorA() public method

public GetAnchorA ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
return void

GetAnchorB() public method

public GetAnchorB ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
return void

GetReactionForce() public method

public GetReactionForce ( float inv_dt, Vec2 argOut ) : void
inv_dt float
argOut Box2D.Common.Vec2
return void

GetReactionTorque() public method

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
return float

InitVelocityConstraints() public method

public InitVelocityConstraints ( SolverData data ) : void
data SolverData
return void

PulleyJoint() public method

public PulleyJoint ( IWorldPool argWorldPool, PulleyJointDef def ) : System.Diagnostics
argWorldPool IWorldPool
def PulleyJointDef
return System.Diagnostics

SolvePositionConstraints() public method

public SolvePositionConstraints ( SolverData data ) : bool
data SolverData
return bool

SolveVelocityConstraints() public method

public SolveVelocityConstraints ( SolverData data ) : void
data SolverData
return void

Property Details

IndexA public property

public int IndexA
return int

IndexB public property

public int IndexB
return int

InvIA public property

public float InvIA
return float

InvIB public property

public float InvIB
return float

InvMassA public property

public float InvMassA
return float

InvMassB public property

public float InvMassB
return float

LocalAnchorA public property

public Vec2,Box2D.Common LocalAnchorA
return Box2D.Common.Vec2

LocalAnchorB public property

public Vec2,Box2D.Common LocalAnchorB
return Box2D.Common.Vec2

RA public property

public Vec2,Box2D.Common RA
return Box2D.Common.Vec2

RB public property

public Vec2,Box2D.Common RB
return Box2D.Common.Vec2