C# Class FarseerPhysics.Dynamics.Joints.AngleJoint

Maintains a fixed angle between two bodies
Inheritance: Joint
Datei anzeigen Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
biasFactor float
maxImpulse float
softness float

Public Methods

Method Description
AngleJoint ( Body bodyA, Body bodyB ) : System

Constructor for AngleJoint

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

Private Methods

Method Description
AngleJoint ( ) : System
initVelocityConstraints ( SolverData &data ) : void
solvePositionConstraints ( SolverData &data ) : bool
solveVelocityConstraints ( SolverData &data ) : void

Method Details

AngleJoint() public method

Constructor for AngleJoint
public AngleJoint ( Body bodyA, Body bodyB ) : System
bodyA Body The first body
bodyB Body The second body
return System

getReactionForce() public method

public getReactionForce ( float invDt ) : Vector2
invDt float
return Vector2

getReactionTorque() public method

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

Property Details

biasFactor public_oe property

Gets or sets the bias factor. Defaults to 0.2
public float biasFactor
return float

maxImpulse public_oe property

Gets or sets the maximum impulse Defaults to float.MaxValue
public float maxImpulse
return float

softness public_oe property

Gets or sets the softness of the joint Defaults to 0
public float softness
return float