C# Class BEPUphysics.Constraints.TwoEntity.JointLimits.RevoluteLimit

Constraint which prevents the connected entities from rotating relative to each other around an axis beyond given limits.
Inheritance: JointLimit, I2DImpulseConstraintWithError, I2DJacobianConstraint
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Свойство Type Description
maximumAngle float
minimumAngle float

Méthodes publiques

Méthode 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 ( 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.

Private Methods

Méthode Description
GetDistanceFromMinimum ( float angle ) : float

Method Details

ExclusiveUpdate() public méthode

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
Résultat void

GetAngularJacobianA() public méthode

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.
Résultat void

GetAngularJacobianB() public méthode

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.
Résultat void

GetLinearJacobianA() public méthode

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.
Résultat void

GetLinearJacobianB() public méthode

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.
Résultat void

GetMassMatrix() public méthode

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.
Résultat void

RevoluteLimit() public méthode

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
Résultat System

RevoluteLimit() public méthode

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.
Résultat System

RevoluteLimit() public méthode

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.
Résultat System

SolveIteration() public méthode

Computes one iteration of the constraint to meet the solver updateable's goal.
public SolveIteration ( ) : float
Résultat float

Update() public méthode

Performs the frame's configuration step.
public Update ( float dt ) : void
dt float Timestep duration.
Résultat void

Property Details

maximumAngle protected_oe property

Naximum angle that entities can twist.
protected float maximumAngle
Résultat float

minimumAngle protected_oe property

Minimum angle that entities can twist.
protected float minimumAngle
Résultat float