C# Class FarseerPhysics.Dynamics.Joints.FixedMouseJoint

A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces. NOTE: this joint is not documented in the manual because it was developed to be used in the testbed. If you want to learn how to use the mouse joint, look at the testbed.
Inheritance: Joint
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
localAnchorA Microsoft.Xna.Framework.Vector2

Méthodes publiques

Méthode Description
FixedMouseJoint ( Body body, Vector2 worldAnchor ) : System.Diagnostics

This requires a world target point, tuning parameters, and the time step.

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

Private Methods

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

Method Details

FixedMouseJoint() public méthode

This requires a world target point, tuning parameters, and the time step.
public FixedMouseJoint ( Body body, Vector2 worldAnchor ) : System.Diagnostics
body Body The body.
worldAnchor Microsoft.Xna.Framework.Vector2 The target.
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

Property Details

localAnchorA public_oe property

The local anchor point on BodyA
public Vector2,Microsoft.Xna.Framework localAnchorA
Résultat Microsoft.Xna.Framework.Vector2