C# 클래스 BEPUphysics.Constraints.SolverGroups.SolverGroup

Superclass of constraints that are composed of multiple subconstraints.
상속: SolverUpdateable
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
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