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
Mostrar archivo Open project: Indiefreaks/igf Class Usage Examples

Public Methods

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

Method Description
UpdateRestrictedAxes ( ) : void

Method Details

ExclusiveUpdate() public method

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
return void

GetAngularJacobianA() public method

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.
return void

GetAngularJacobianB() public method

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.
return void

GetLinearJacobianA() public method

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.
return void

GetLinearJacobianB() public method

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.
return void

GetMassMatrix() public method

Gets the mass matrix of the constraint.
public GetMassMatrix ( Matrix2x2 &massMatrix ) : void
massMatrix Matrix2x2 Constraint's mass matrix.
return void

PointOnLineJoint() public method

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
return System

PointOnLineJoint() public method

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.
return System

SolveIteration() public method

Calculates and applies corrective impulses. Called automatically by space.
public SolveIteration ( ) : float
return float

Update() public method

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