C# Класс Project290.Physics.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 inv_dt ) : Vector2
GetReactionTorque ( float inv_dt ) : float

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

Метод Описание
InitVelocityConstraints ( TimeStep &step ) : void
SolvePositionConstraints ( ) : bool
SolveVelocityConstraints ( TimeStep &step ) : 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 inv_dt ) : Vector2
inv_dt float
Результат Microsoft.Xna.Framework.Vector2

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

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

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

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

public Vector2,Microsoft.Xna.Framework LocalAnchorA
Результат Microsoft.Xna.Framework.Vector2