C# Class FarseerPhysics.Dynamics.Joints.RevoluteJoint

A revolute joint rains to bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated.
Inheritance: Joint
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
localAnchorA Vector2
localAnchorB Vector2

Méthodes publiques

Méthode Description
RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : System

Constructor of RevoluteJoint.

RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : System

Constructor of RevoluteJoint.

getMotorTorque ( float invDt ) : float

Gets the motor torque in N-m.

getReactionForce ( float invDt ) : Vector2
getReactionTorque ( float invDt ) : float
setLimits ( float lower, float upper ) : void

Set the joint limits, usually in meters.

Private Methods

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

Method Details

RevoluteJoint() public méthode

Constructor of RevoluteJoint.
public RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : System
bodyA Body The first body.
bodyB Body The second body.
anchorA Vector2 The first body anchor.
anchorB Vector2 The second anchor.
useWorldCoordinates bool Set to true if you are using world coordinates as anchors.
Résultat System

RevoluteJoint() public méthode

Constructor of RevoluteJoint.
public RevoluteJoint ( Body bodyA, Body bodyB, Vector2 anchor, bool useWorldCoordinates = false ) : System
bodyA Body The first body.
bodyB Body The second body.
anchor Vector2 The shared anchor.
useWorldCoordinates bool
Résultat System

getMotorTorque() public méthode

Gets the motor torque in N-m.
public getMotorTorque ( float invDt ) : float
invDt float The inverse delta time
Résultat float

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

setLimits() public méthode

Set the joint limits, usually in meters.
public setLimits ( float lower, float upper ) : void
lower float The lower limit
upper float The upper limit
Résultat void

Property Details

localAnchorA public_oe property

The local anchor point on BodyA
public Vector2 localAnchorA
Résultat Vector2

localAnchorB public_oe property

The local anchor point on BodyB
public Vector2 localAnchorB
Résultat Vector2