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

Constrains a point on one body to be on a plane defined by another body.
Inheritance: BEPUphysics.Constraints.TwoEntity.Joints.Joint, I1DImpulseConstraintWithError, I1DJacobianConstraint
Datei anzeigen 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 ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void

Gets the angular jacobian entry for the first connected entity.

GetAngularJacobianB ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void

Gets the angular jacobian entry for the second connected entity.

GetLinearJacobianA ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void

Gets the linear jacobian entry for the first connected entity.

GetLinearJacobianB ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void

Gets the linear jacobian entry for the second connected entity.

GetMassMatrix ( float &outputMassMatrix ) : void

Gets the mass matrix of the constraint.

PointOnPlaneJoint ( ) : BEPUphysics.Entities

Constructs a new point on plane constraint. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the PlaneAnchor, PlaneNormal, and PointAnchor (or their entity-local versions). This constructor sets the constraint's IsActive property to false by default.

PointOnPlaneJoint ( Entity connectionA, Entity connectionB, Microsoft.Xna.Framework.Vector3 planeAnchor, Microsoft.Xna.Framework.Vector3 normal, Microsoft.Xna.Framework.Vector3 pointAnchor ) : BEPUphysics.Entities

Constructs a new point on plane constraint.

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 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 ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void
jacobian Microsoft.Xna.Framework.Vector3 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 ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void
jacobian Microsoft.Xna.Framework.Vector3 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 ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void
jacobian Microsoft.Xna.Framework.Vector3 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 ( Microsoft.Xna.Framework.Vector3 &jacobian ) : void
jacobian Microsoft.Xna.Framework.Vector3 Linear jacobian entry for the second connected entity.
return void

GetMassMatrix() public method

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

PointOnPlaneJoint() public method

Constructs a new point on plane constraint. To finish the initialization, specify the connections (ConnectionA and ConnectionB) as well as the PlaneAnchor, PlaneNormal, and PointAnchor (or their entity-local versions). This constructor sets the constraint's IsActive property to false by default.
public PointOnPlaneJoint ( ) : BEPUphysics.Entities
return BEPUphysics.Entities

PointOnPlaneJoint() public method

Constructs a new point on plane constraint.
public PointOnPlaneJoint ( Entity connectionA, Entity connectionB, Microsoft.Xna.Framework.Vector3 planeAnchor, Microsoft.Xna.Framework.Vector3 normal, Microsoft.Xna.Framework.Vector3 pointAnchor ) : BEPUphysics.Entities
connectionA BEPUphysics.Entities.Entity Entity to which the constraint's plane is attached.
connectionB BEPUphysics.Entities.Entity Entity to which the constraint's point is attached.
planeAnchor Microsoft.Xna.Framework.Vector3 A point on the plane.
normal Microsoft.Xna.Framework.Vector3 Direction, attached to the first connected entity, defining the plane's normal
pointAnchor Microsoft.Xna.Framework.Vector3 The point to constrain to the plane, attached to the second connected object.
return BEPUphysics.Entities

SolveIteration() public method

Computes one iteration of the constraint to meet the solver updateable's goal.
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