C# Класс 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.
Наследование: Joint
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
localAnchorA Vector2
localAnchorB Vector2

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
RevoluteJoint ( ) : System
initVelocityConstraints ( SolverData &data ) : void
solvePositionConstraints ( SolverData &data ) : bool
solveVelocityConstraints ( SolverData &data ) : void

Описание методов

RevoluteJoint() публичный Метод

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.
Результат System

RevoluteJoint() публичный Метод

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
Результат System

getMotorTorque() публичный Метод

Gets the motor torque in N-m.
public getMotorTorque ( float invDt ) : float
invDt float The inverse delta time
Результат float

getReactionForce() публичный Метод

public getReactionForce ( float invDt ) : Vector2
invDt float
Результат Vector2

getReactionTorque() публичный Метод

public getReactionTorque ( float invDt ) : float
invDt float
Результат float

setLimits() публичный Метод

Set the joint limits, usually in meters.
public setLimits ( float lower, float upper ) : void
lower float The lower limit
upper float The upper limit
Результат void

Описание свойств

localAnchorA публичное свойство

The local anchor point on BodyA
public Vector2 localAnchorA
Результат Vector2

localAnchorB публичное свойство

The local anchor point on BodyB
public Vector2 localAnchorB
Результат Vector2