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

Constrains two entities so that one has a point that stays on a line defined by the other.
Наследование: BEPUphysics.Constraints.TwoEntity.Joints.Joint, I2DImpulseConstraintWithError, I2DJacobianConstraint
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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 &jacobianX, Vector3 &jacobianY ) : void

Gets the angular jacobian entry for the first connected entity.

GetAngularJacobianB ( Vector3 &jacobianX, Vector3 &jacobianY ) : void

Gets the angular jacobian entry for the second connected entity.

GetLinearJacobianA ( Vector3 &jacobianX, Vector3 &jacobianY ) : void

Gets the linear jacobian entry for the first connected entity.

GetLinearJacobianB ( Vector3 &jacobianX, Vector3 &jacobianY ) : void

Gets the linear jacobian entry for the second connected entity.

GetMassMatrix ( Matrix2x2 &massMatrix ) : void

Gets the mass matrix of the constraint.

PointOnLineJoint ( ) : System

Constructs a joint which constrains a point of one body to be on a line based on the other body. To finish the initialization, specify the connections (ConnectionA and ConnectionB), the LineAnchor, the LineDirection, and the Point (or the entity-local versions). This constructor sets the constraint's IsActive property to false by default.

PointOnLineJoint ( Entity connectionA, Entity connectionB, Vector3 lineAnchor, Vector3 lineDirection, Vector3 pointLocation ) : System

Constructs a joint which constrains a point of one body to be on a line based on the other body.

SolveIteration ( ) : float

Calculates and applies corrective impulses. Called automatically by space.

Update ( float dt ) : void

Performs the frame's configuration step.

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

Метод Описание
UpdateRestrictedAxes ( ) : void

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

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 &jacobianX, Vector3 &jacobianY ) : void
jacobianX Vector3 First angular jacobian entry for the first connected entity.
jacobianY Vector3 Second angular jacobian entry for the first connected entity.
Результат void

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

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

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

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

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

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

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

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

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

Constructs a joint which constrains a point of one body to be on a line based on the other body. To finish the initialization, specify the connections (ConnectionA and ConnectionB), the LineAnchor, the LineDirection, and the Point (or the entity-local versions). This constructor sets the constraint's IsActive property to false by default.
public PointOnLineJoint ( ) : System
Результат System

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

Constructs a joint which constrains a point of one body to be on a line based on the other body.
public PointOnLineJoint ( Entity connectionA, Entity connectionB, Vector3 lineAnchor, Vector3 lineDirection, Vector3 pointLocation ) : System
connectionA Entity First connected entity which defines the line.
connectionB Entity Second connected entity which has a point.
lineAnchor Vector3 Location off of which the line is based in world space.
lineDirection Vector3 Direction of the line in world space.
pointLocation Vector3 Location of the point anchored to connectionB in world space.
Результат System

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

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

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

Performs the frame's configuration step.
public Update ( float dt ) : void
dt float Timestep duration.
Результат void