C# Class Project290.Physics.Dynamics.Joints.RopeJoint

A rope joint enforces a maximum distance between two points on two bodies. It has no other effect. Warning: if you attempt to change the maximum length during the simulation you will get some non-physical behavior. A model that would allow you to dynamically modify the length would have some sponginess, so I chose not to implement it that way. See b2DistanceJoint if you want to dynamically control length.
Inheritance: Joint
Afficher le fichier Open project: scastle/Solitude

Méthodes publiques

Свойство Type Description
LocalAnchorA Vector2
LocalAnchorB Vector2

Méthodes publiques

Méthode Description
GetReactionForce ( float invDt ) : Vector2
GetReactionTorque ( float invDt ) : float
RopeJoint ( Body bodyA, Body bodyB, Vector2 localAnchorA, Vector2 localAnchorB ) : System

Private Methods

Méthode Description
InitVelocityConstraints ( TimeStep &step ) : void
SolvePositionConstraints ( ) : bool
SolveVelocityConstraints ( TimeStep &step ) : void

Method Details

GetReactionForce() public méthode

public GetReactionForce ( float invDt ) : Vector2
invDt float
Résultat Vector2

GetReactionTorque() public méthode

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

RopeJoint() public méthode

public RopeJoint ( Body bodyA, Body bodyB, Vector2 localAnchorA, Vector2 localAnchorB ) : System
bodyA Body
bodyB Body
localAnchorA Vector2
localAnchorB Vector2
Résultat System

Property Details

LocalAnchorA public_oe property

public Vector2 LocalAnchorA
Résultat Vector2

LocalAnchorB public_oe property

public Vector2 LocalAnchorB
Résultat Vector2