Property | Type | Description | |
---|---|---|---|
maximumAngle | float | ||
minimumAngle | float |
Method | Description | |
---|---|---|
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 ( |
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.
|
Method | Description | |
---|---|---|
GetDistanceFromMinimum ( float angle ) : float |
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. |
return | void |
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. |
return | void |
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. |
return | void |
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. |
return | void |
public GetMassMatrix ( |
||
massMatrix | Mass matrix of the constraint. | |
return | void |
public RevoluteLimit ( Entity connectionA, Entity connectionB ) : System | ||
connectionA | Entity | First connection of the pair. |
connectionB | Entity | Second connection of the pair. |
return | System |
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. |
return | System |