C# Class FarseerPhysics.Dynamics.Joints.WheelJoint

Inheritance: Joint
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
dampingRatio float
frequency float
localAnchorA Vector2
localAnchorB Vector2

Méthodes publiques

Méthode 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

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

Method Details

WheelJoint() public méthode

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.
Résultat System

getMotorTorque() public méthode

Gets the torque of the motor
public getMotorTorque ( float invDt ) : float
invDt float 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

Property Details

dampingRatio public_oe property

Suspension damping ratio, one indicates critical damping
public float dampingRatio
Résultat float

frequency public_oe property

Suspension frequency, zero indicates no suspension
public float frequency
Résultat float

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