C# Class BEPUphysics.Constraints.TwoEntity.Joints.TwistJoint

Prevents the connected entities from twisting relative to each other. Acts like the angular part of a universal joint.
Inheritance: BEPUphysics.Constraints.TwoEntity.Joints.Joint, I1DImpulseConstraintWithError, I1DJacobianConstraint
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

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 &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

Solves for velocity.

TwistJoint ( ) : System

Constructs a new constraint which prevents the connected entities from twisting relative to each other. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the WorldAxisA and WorldAxisB (or their entity-local versions). This constructor sets the constraint's IsActive property to false by default.

TwistJoint ( Entity connectionA, Entity connectionB, Vector3 axisA, Vector3 axisB ) : System

Constructs a new constraint which prevents the connected entities from twisting relative to each other.

Update ( float dt ) : void

Do any necessary computations to prepare the constraint for this frame.

Private Methods

Méthode Description
Initialize ( ) : void

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 &jacobian ) : void
jacobian Vector3 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 &jacobian ) : void
jacobian Vector3 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 &jacobian ) : void
jacobian Vector3 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 &jacobian ) : void
jacobian Vector3 Linear jacobian entry for the second connected entity.
Résultat void

GetMassMatrix() public méthode

Gets the mass matrix of the constraint.
public GetMassMatrix ( float &outputMassMatrix ) : void
outputMassMatrix float Constraint's mass matrix.
Résultat void

SolveIteration() public méthode

Solves for velocity.
public SolveIteration ( ) : float
Résultat float

TwistJoint() public méthode

Constructs a new constraint which prevents the connected entities from twisting relative to each other. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the WorldAxisA and WorldAxisB (or their entity-local versions). This constructor sets the constraint's IsActive property to false by default.
public TwistJoint ( ) : System
Résultat System

TwistJoint() public méthode

Constructs a new constraint which prevents the connected entities from twisting relative to each other.
public TwistJoint ( Entity connectionA, Entity connectionB, Vector3 axisA, Vector3 axisB ) : System
connectionA Entity First connection of the pair.
connectionB Entity Second connection of the pair.
axisA Vector3 Twist axis attached to the first connected entity.
axisB Vector3 Twist axis attached to the second connected entity.
Résultat System

Update() public méthode

Do any necessary computations to prepare the constraint for this frame.
public Update ( float dt ) : void
dt float Simulation step length.
Résultat void