C# Класс FarseerPhysics.Dynamics.Joints.FixedDistanceJoint

A distance joint rains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.
Наследование: Joint
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
FixedDistanceJoint ( Body body, Vector2 bodyAnchor, Vector2 worldAnchor ) : System

This requires defining an anchor point on both bodies and the non-zero length of the distance joint. If you don't supply a length, the local anchor points is used so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game. @warning Do not use a zero or short length.

GetReactionForce ( float invDt ) : Vector2
GetReactionTorque ( float invDt ) : float

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

Метод Описание
InitVelocityConstraints ( TimeStep &step ) : void
SolvePositionConstraints ( ) : bool
SolveVelocityConstraints ( TimeStep &step ) : void

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

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

This requires defining an anchor point on both bodies and the non-zero length of the distance joint. If you don't supply a length, the local anchor points is used so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game. @warning Do not use a zero or short length.
public FixedDistanceJoint ( Body body, Vector2 bodyAnchor, Vector2 worldAnchor ) : System
body Body The body.
bodyAnchor Vector2 The body anchor.
worldAnchor Vector2 The world anchor.
Результат System

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

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

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

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