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

Constrains two entities so that one has a point that stays on a line defined by the other.
Inheritance: BEPUphysics.Constraints.TwoEntity.Joints.Joint, I2DImpulseConstraintWithError, I2DJacobianConstraint
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 &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.

Private Methods

Méthode Description
UpdateRestrictedAxes ( ) : 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 &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 constraint.
public GetMassMatrix ( Matrix2x2 &massMatrix ) : void
massMatrix Matrix2x2 Constraint's mass matrix.
Résultat void

PointOnLineJoint() public méthode

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

PointOnLineJoint() public méthode

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

SolveIteration() public méthode

Calculates and applies corrective impulses. Called automatically by space.
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