C# Класс BEPUphysics.Constraints.SolverGroups.SolverGroup

Superclass of constraints that are composed of multiple subconstraints.
Наследование: SolverUpdateable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

OnAdditionToSpace ( ISpace newSpace ) : void

Called after the object is added to a space.

OnRemovalFromSpace ( ISpace oldSpace ) : void

Called before an object is removed from its space.

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.

UpdateSolverActivity ( ) : void

Sets the activity state of the constraint based on the activity state of its connections. Called automatically by the space owning a constaint. If a constraint is a sub-constraint that hasn't been directly added to the space, this may need to be called alongside the preStep from within the parent constraint.

Защищенные методы

Метод Описание
Add ( EntitySolverUpdateable solverUpdateable ) : void

Adds a solver updateable to the group.

CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void

Collects the entities which are affected by the solver group and updates the internal listing.

ExclusiveUpdateUpdateable ( EntitySolverUpdateable item ) : void
Remove ( EntitySolverUpdateable solverUpdateable ) : void

Removes a solver updateable from the group.

SolveUpdateable ( EntitySolverUpdateable item, int &activeConstraints ) : void

Solves a child updateable. Some children may override the group's update method; this avoids code repeat.

UpdateUpdateable ( EntitySolverUpdateable item, float dt ) : void

Описание методов

Add() защищенный Метод

Adds a solver updateable to the group.
Thrown when the SolverUpdateable to add to the SolverGroup already belongs to another SolverGroup or to a Space.
protected Add ( EntitySolverUpdateable solverUpdateable ) : void
solverUpdateable EntitySolverUpdateable Solver updateable to add.
Результат void

CollectInvolvedEntities() защищенный Метод

Collects the entities which are affected by the solver group and updates the internal listing.
protected CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void
outputInvolvedEntities RawList
Результат void

ExclusiveUpdate() публичный Метод

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
Результат void

ExclusiveUpdateUpdateable() защищенный Метод

protected ExclusiveUpdateUpdateable ( EntitySolverUpdateable item ) : void
item EntitySolverUpdateable
Результат void

OnAdditionToSpace() публичный Метод

Called after the object is added to a space.
public OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace
Результат void

OnRemovalFromSpace() публичный Метод

Called before an object is removed from its space.
public OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace
Результат void

Remove() защищенный Метод

Removes a solver updateable from the group.
Thrown when the SolverUpdateable to remove from the SolverGroup doesn't actually belong to this SolverGroup.
protected Remove ( EntitySolverUpdateable solverUpdateable ) : void
solverUpdateable EntitySolverUpdateable Solver updateable to remove.
Результат void

SolveIteration() публичный Метод

Computes one iteration of the constraint to meet the solver updateable's goal.
public SolveIteration ( ) : float
Результат float

SolveUpdateable() защищенный Метод

Solves a child updateable. Some children may override the group's update method; this avoids code repeat.
protected SolveUpdateable ( EntitySolverUpdateable item, int &activeConstraints ) : void
item EntitySolverUpdateable
activeConstraints int
Результат void

Update() публичный Метод

Performs the frame's configuration step.
public Update ( float dt ) : void
dt float Timestep duration.
Результат void

UpdateSolverActivity() публичный Метод

Sets the activity state of the constraint based on the activity state of its connections. Called automatically by the space owning a constaint. If a constraint is a sub-constraint that hasn't been directly added to the space, this may need to be called alongside the preStep from within the parent constraint.
public UpdateSolverActivity ( ) : void
Результат void

UpdateUpdateable() защищенный Метод

protected UpdateUpdateable ( EntitySolverUpdateable item, float dt ) : void
item EntitySolverUpdateable
dt float
Результат void