C# Class BEPUphysics.Constraints.Collision.ContactFrictionConstraint

Computes the friction force for a contact when central friction cannot be used.
Inheritance: EntitySolverUpdateable
ファイルを表示 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
CleanUp ( ) : void

Cleans upt he friction constraint.

ContactFrictionConstraint ( ) : System

Constructs a new friction constraint.

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.

Setup ( ContactManifoldConstraint contactManifoldConstraint, ContactPenetrationConstraint penetrationConstraint ) : void

Configures the friction constraint for a new contact.

SolveIteration ( ) : float

Computes one iteration of the constraint to meet the solver updateable's goal.

Update ( float dt ) : void

Initializes the constraint for this frame.

Protected Methods

Method Description
CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void

Method Details

CleanUp() public method

Cleans upt he friction constraint.
public CleanUp ( ) : void
return void

CollectInvolvedEntities() protected method

protected CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void
outputInvolvedEntities RawList
return void

ContactFrictionConstraint() public method

Constructs a new friction constraint.
public ContactFrictionConstraint ( ) : System
return System

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

Setup() public method

Configures the friction constraint for a new contact.
public Setup ( ContactManifoldConstraint contactManifoldConstraint, ContactPenetrationConstraint penetrationConstraint ) : void
contactManifoldConstraint ContactManifoldConstraint Manifold to which the constraint belongs.
penetrationConstraint ContactPenetrationConstraint Penetration constraint associated with this friction constraint.
return void

SolveIteration() public method

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

Update() public method

Initializes the constraint for this frame.
public Update ( float dt ) : void
dt float Time since the last frame.
return void