C# Класс BEPUphysics.Constraints.TwoEntity.JointLimits.RevoluteLimit

Constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits.
Наследование: JointLimit, I2DImpulseConstraintWithError, I2DJacobianConstraint
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
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 revolute limit. The revolute limit is special; in terms of solving, it is actually sometimes TWO constraints; a minimum plane, and a maximum plane. The M11 field represents the minimum plane mass matrix and the M22 field represents the maximum plane mass matrix.

RevoluteLimit ( ) : System

Constructs a new constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the TestAxis (or its entity-local version) and the Basis. This constructor sets the constraint's IsActive property to false by default.

RevoluteLimit ( Entity connectionA, Entity connectionB ) : System

Constructs a new constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits. Using this constructor will leave the limit uninitialized. Before using the limit in a simulation, be sure to set the basis axes using Basis.SetLocalAxes or Basis.SetWorldAxes and the test axis using the LocalTestAxis or TestAxis properties.

RevoluteLimit ( Entity connectionA, Entity connectionB, Vector3 limitedAxis, Vector3 testAxis, float minimumAngle, float maximumAngle ) : System

Constructs a new constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits.

SolveIteration ( ) : float

Computes one iteration of the constraint to meet the solver updateable's goal.

Update ( float dt ) : void

Performs the frame's configuration step.

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

Метод Описание
GetDistanceFromMinimum ( float angle ) : float

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

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 revolute limit. The revolute limit is special; in terms of solving, it is actually sometimes TWO constraints; a minimum plane, and a maximum plane. The M11 field represents the minimum plane mass matrix and the M22 field represents the maximum plane mass matrix.
public GetMassMatrix ( Matrix2x2 &massMatrix ) : void
massMatrix BEPUutilities.Matrix2x2 Mass matrix of the constraint.
Результат void

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

Constructs a new constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the TestAxis (or its entity-local version) and the Basis. This constructor sets the constraint's IsActive property to false by default.
public RevoluteLimit ( ) : System
Результат System

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

Constructs a new constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits. Using this constructor will leave the limit uninitialized. Before using the limit in a simulation, be sure to set the basis axes using Basis.SetLocalAxes or Basis.SetWorldAxes and the test axis using the LocalTestAxis or TestAxis properties.
public RevoluteLimit ( Entity connectionA, Entity connectionB ) : System
connectionA Entity First connection of the pair.
connectionB Entity Second connection of the pair.
Результат System

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

Constructs a new constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits.
public RevoluteLimit ( Entity connectionA, Entity connectionB, Vector3 limitedAxis, Vector3 testAxis, float minimumAngle, float maximumAngle ) : System
connectionA Entity First connection of the pair.
connectionB Entity Second connection of the pair.
limitedAxis Vector3 Axis of rotation to be limited.
testAxis Vector3 Axis attached to connectionB that is tested to determine the current angle. /// Will also be used as the base rotation axis representing 0 degrees.
minimumAngle float Minimum twist angle allowed.
maximumAngle float Maximum twist angle allowed.
Результат System

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

Computes one iteration of the constraint to meet the solver updateable's goal.
public SolveIteration ( ) : float
Результат float

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

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

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

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

Naximum angle that entities can twist.
protected float maximumAngle
Результат float

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

Minimum angle that entities can twist.
protected float minimumAngle
Результат float