C# Класс BEPUphysics.Constraints.TwoEntity.Joints.DistanceJoint

Constraint which tries to maintain the distance between points on two entities.
Наследование: BEPUphysics.Constraints.TwoEntity.Joints.Joint, I1DImpulseConstraintWithError, I1DJacobianConstraint
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
distance float

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

Метод Описание
DistanceJoint ( ) : System

Constructs a distance joint. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the anchors (WorldAnchorA, WorldAnchorB or LocalAnchorA, LocalAnchorB) and the desired Distance. This constructor sets the constraint's IsActive property to false by default.

DistanceJoint ( Entity connectionA, Entity connectionB, Vector3 anchorA, Vector3 anchorB ) : System

Constructs a distance joint.

ExclusiveUpdate ( ) : void

Performs any pre-solve iteration work that needs exclusive access to the members of the solver updateable. Usually, this is used for applying warmstarting impulses.

GetAngularJacobianA ( Vector3 &jacobian ) : void

Gets the angular jacobian entry for the first connected entity.

GetAngularJacobianB ( Vector3 &jacobian ) : void

Gets the angular jacobian entry for the second connected entity.

GetLinearJacobianA ( Vector3 &jacobian ) : void

Gets the linear jacobian entry for the first connected entity.

GetLinearJacobianB ( Vector3 &jacobian ) : void

Gets the linear jacobian entry for the second connected entity.

GetMassMatrix ( float &outputMassMatrix ) : void

Gets the mass matrix of the constraint.

SolveIteration ( ) : float

Calculates and applies corrective impulses. Called automatically by space.

Update ( float dt ) : void

Calculates necessary information for velocity solving.

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

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

Constructs a distance joint. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the anchors (WorldAnchorA, WorldAnchorB or LocalAnchorA, LocalAnchorB) and the desired Distance. This constructor sets the constraint's IsActive property to false by default.
public DistanceJoint ( ) : System
Результат System

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

Constructs a distance joint.
public DistanceJoint ( Entity connectionA, Entity connectionB, Vector3 anchorA, Vector3 anchorB ) : System
connectionA Entity First body connected to the distance joint.
connectionB Entity Second body connected to the distance joint.
anchorA Vector3 Connection to the distance joint from the first connected body in world space.
anchorB Vector3 Connection to the distance joint from the second connected body in world space.
Результат System

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

Performs any pre-solve iteration work that needs exclusive access to the members of the solver updateable. Usually, this is used for applying warmstarting impulses.
public ExclusiveUpdate ( ) : void
Результат void

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

Gets the angular jacobian entry for the first connected entity.
public GetAngularJacobianA ( Vector3 &jacobian ) : void
jacobian Vector3 Angular jacobian entry for the first connected entity.
Результат void

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

Gets the angular jacobian entry for the second connected entity.
public GetAngularJacobianB ( Vector3 &jacobian ) : void
jacobian Vector3 Angular jacobian entry for the second connected entity.
Результат void

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

Gets the linear jacobian entry for the first connected entity.
public GetLinearJacobianA ( Vector3 &jacobian ) : void
jacobian Vector3 Linear jacobian entry for the first connected entity.
Результат void

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

Gets the linear jacobian entry for the second connected entity.
public GetLinearJacobianB ( Vector3 &jacobian ) : void
jacobian Vector3 Linear jacobian entry for the second connected entity.
Результат void

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

Gets the mass matrix of the constraint.
public GetMassMatrix ( float &outputMassMatrix ) : void
outputMassMatrix float Constraint's mass matrix.
Результат void

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

Calculates and applies corrective impulses. Called automatically by space.
public SolveIteration ( ) : float
Результат float

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

Calculates necessary information for velocity solving.
public Update ( float dt ) : void
dt float Time in seconds since the last update.
Результат void

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

distance защищенное свойство

Distance maintained between the anchors.
protected float distance
Результат float