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

A distance joint rains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.
Inheritance: Joint
Afficher le fichier Open project: scastle/Solitude Class Usage Examples

Méthodes publiques

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

Méthodes publiques

Méthode Description
FixedDistanceJoint ( Body body, Vector2 bodyAnchor, Vector2 worldAnchor ) : System

This requires defining an anchor point on both bodies and the non-zero length of the distance joint. If you don't supply a length, the local anchor points is used so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game. @warning Do not use a zero or short length.

GetReactionForce ( float invDt ) : Vector2
GetReactionTorque ( float invDt ) : float

Private Methods

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

Method Details

FixedDistanceJoint() public méthode

This requires defining an anchor point on both bodies and the non-zero length of the distance joint. If you don't supply a length, the local anchor points is used so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game. @warning Do not use a zero or short length.
public FixedDistanceJoint ( Body body, Vector2 bodyAnchor, Vector2 worldAnchor ) : System
body Body The body.
bodyAnchor Vector2 The body anchor.
worldAnchor Vector2 The world anchor.
Résultat System

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

Property Details

LocalAnchorA public_oe property

The local anchor point relative to bodyA's origin.
public Vector2 LocalAnchorA
Résultat Vector2