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

A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces. NOTE: this joint is not documented in the manual because it was developed to be used in the testbed. If you want to learn how to use the mouse joint, look at the testbed.
Наследование: Joint
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
localAnchorA Microsoft.Xna.Framework.Vector2

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

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

This requires a world target point, tuning parameters, and the time step.

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

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

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

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

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

This requires a world target point, tuning parameters, and the time step.
public FixedMouseJoint ( Body body, Vector2 worldAnchor ) : System.Diagnostics
body Body The body.
worldAnchor Microsoft.Xna.Framework.Vector2 The target.
Результат System.Diagnostics

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

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

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

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

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

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

The local anchor point on BodyA
public Vector2,Microsoft.Xna.Framework localAnchorA
Результат Microsoft.Xna.Framework.Vector2