C# Class FarseerPhysics.Dynamics.Joints.MotorJoint

A motor joint is used to control the relative motion between two bodies. A typical usage is to control the movement of a dynamic body with respect to the ground.
Inheritance: Joint
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Méthode Description
MotorJoint ( Body bodyA, Body bodyB, bool useWorldCoordinates = false ) : System.Diagnostics

Constructor for MotorJoint.

getReactionForce ( float invDt ) : Vector2
getReactionTorque ( float invDt ) : float

Private Methods

Méthode Description
MotorJoint ( ) : System.Diagnostics
initVelocityConstraints ( SolverData &data ) : void
solvePositionConstraints ( SolverData &data ) : bool
solveVelocityConstraints ( SolverData &data ) : void

Method Details

MotorJoint() public méthode

Constructor for MotorJoint.
public MotorJoint ( Body bodyA, Body bodyB, bool useWorldCoordinates = false ) : System.Diagnostics
bodyA Body The first body
bodyB Body The second body
useWorldCoordinates bool Set to true if you are using world coordinates as anchors.
Résultat System.Diagnostics

getReactionForce() public méthode

public getReactionForce ( float invDt ) : Vector2
invDt float
Résultat Microsoft.Xna.Framework.Vector2

getReactionTorque() public méthode

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