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
Afficher le fichier Open project: gerich-home/box2dnet

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

public GetAnchorA ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
Résultat void

GetAnchorB() public méthode

public GetAnchorB ( Vec2 argOut ) : void
argOut Box2D.Common.Vec2
Résultat void

GetReactionForce() public méthode

public GetReactionForce ( float inv_dt, Vec2 argOut ) : void
inv_dt float
argOut Box2D.Common.Vec2
Résultat void

GetReactionTorque() public méthode

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
Résultat float

InitVelocityConstraints() public méthode

public InitVelocityConstraints ( SolverData data ) : void
data SolverData
Résultat void

PulleyJoint() public méthode

public PulleyJoint ( IWorldPool argWorldPool, PulleyJointDef def ) : System.Diagnostics
argWorldPool IWorldPool
def PulleyJointDef
Résultat System.Diagnostics

SolvePositionConstraints() public méthode

public SolvePositionConstraints ( SolverData data ) : bool
data SolverData
Résultat bool

SolveVelocityConstraints() public méthode

public SolveVelocityConstraints ( SolverData data ) : void
data SolverData
Résultat void

Property Details

IndexA public_oe property

public int IndexA
Résultat int

IndexB public_oe property

public int IndexB
Résultat int

InvIA public_oe property

public float InvIA
Résultat float

InvIB public_oe property

public float InvIB
Résultat float

InvMassA public_oe property

public float InvMassA
Résultat float

InvMassB public_oe property

public float InvMassB
Résultat float

LocalAnchorA public_oe property

public Vec2,Box2D.Common LocalAnchorA
Résultat Box2D.Common.Vec2

LocalAnchorB public_oe property

public Vec2,Box2D.Common LocalAnchorB
Résultat Box2D.Common.Vec2

RA public_oe property

public Vec2,Box2D.Common RA
Résultat Box2D.Common.Vec2

RB public_oe property

public Vec2,Box2D.Common RB
Résultat Box2D.Common.Vec2