C# Class FarseerPhysics.Dynamics.Joints.WheelJoint

Inheritance: Joint
显示文件 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
dampingRatio float
frequency float
localAnchorA Vector2
localAnchorB Vector2

Public Methods

Method Description
WheelJoint ( Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : System

Constructor for WheelJoint

getMotorTorque ( float invDt ) : float

Gets the torque of the motor

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

Private Methods

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

Method Details

WheelJoint() public method

Constructor for WheelJoint
public WheelJoint ( Body bodyA, Body bodyB, Vector2 anchor, Vector2 axis, bool useWorldCoordinates = false ) : System
bodyA Body The first body
bodyB Body The second body
anchor Vector2 The anchor point
axis Vector2 The axis
useWorldCoordinates bool Set to true if you are using world coordinates as anchors.
return System

getMotorTorque() public method

Gets the torque of the motor
public getMotorTorque ( float invDt ) : float
invDt float inverse delta time
return float

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

dampingRatio public_oe property

Suspension damping ratio, one indicates critical damping
public float dampingRatio
return float

frequency public_oe property

Suspension frequency, zero indicates no suspension
public float frequency
return float

localAnchorA public_oe property

The local anchor point on BodyA
public Vector2 localAnchorA
return Vector2

localAnchorB public_oe property

The local anchor point on BodyB
public Vector2 localAnchorB
return Vector2