C# Class FarseerPhysics.Dynamics.Joints.FixedLineJoint

Inheritance: Joint
Afficher le fichier Open project: scastle/Solitude Class Usage Examples

Méthodes publiques

Méthode Description
FixedLineJoint ( Body bodyA, Vector2 anchor, Vector2 axis ) : System

Initialize the bodies, anchors, axis, and reference angle using the local anchor and world axis. This requires defining a line of motion using an axis and an anchor point. Uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.

GetReactionForce ( float inv_dt ) : Vector2
GetReactionTorque ( float inv_dt ) : float

Private Methods

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

Method Details

FixedLineJoint() public méthode

Initialize the bodies, anchors, axis, and reference angle using the local anchor and world axis. This requires defining a line of motion using an axis and an anchor point. Uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.
public FixedLineJoint ( Body bodyA, Vector2 anchor, Vector2 axis ) : System
bodyA Body The first body.
anchor Vector2 The anchor.
axis Vector2 The axis.
Résultat System

GetReactionForce() public méthode

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

GetReactionTorque() public méthode

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