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
Datei anzeigen Open project: prime31/Nez Class Usage Examples

Public Methods

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

Constructor for MotorJoint.

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

Private Methods

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

Method Details

MotorJoint() public method

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.
return System.Diagnostics

getReactionForce() public method

public getReactionForce ( float invDt ) : Vector2
invDt float
return Microsoft.Xna.Framework.Vector2

getReactionTorque() public method

public getReactionTorque ( float invDt ) : float
invDt float
return float