C# Class BEPUphysics.SolverSystems.SolverUpdateable

Superclass of all objects that live in the solver.
Inheritance: ISimulationIslandConnectionOwner, ISpaceObject
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Property Type Description
isActive bool
isActiveInSolver bool
simulationIslandConnection BEPUphysics.DeactivationManagement.SimulationIslandConnection
solver Solver
solverSettings BEPUphysics.Constraints.SolverSettings
space ISpace

Private Properties

Property Type Description

Public Methods

Method Description
EnterLock ( ) : void

Acquires a lock on the solver updateable. This allows operations that need exclusive access to the solver updateable's members.

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.

ExitLock ( ) : void

Releases the lock on the solver updateable.

OnAdditionToSolver ( Solver newSolver ) : void

Called when the updateable is added to a solver.

OnAdditionToSpace ( ISpace newSpace ) : void

Called after the object is added to a space.

OnRemovalFromSolver ( Solver oldSolver ) : void

Called when the updateable is removed from its solver.

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.

TryEnterLock ( ) : bool

Attempts to acquire a lock on the solver updateable. This allows operations that need exclusive access to the solver updateable's members. If it is contested, it aborts the attempt.

Update ( float dt ) : void

Performs the frame's configuration step.

UpdateSolverActivity ( ) : void

Updates the activity state of the solver updateable based on its members.

Protected Methods

Method Description
SolverUpdateable ( ) : BEPUphysics.Constraints

Method Details

EnterLock() public abstract method

Acquires a lock on the solver updateable. This allows operations that need exclusive access to the solver updateable's members.
public abstract EnterLock ( ) : void
return void

ExclusiveUpdate() public abstract 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 abstract ExclusiveUpdate ( ) : void
return void

ExitLock() public abstract method

Releases the lock on the solver updateable.
public abstract ExitLock ( ) : void
return void

OnAdditionToSolver() public method

Called when the updateable is added to a solver.
public OnAdditionToSolver ( Solver newSolver ) : void
newSolver Solver Solver to which the updateable was added.
return void

OnAdditionToSpace() public method

Called after the object is added to a space.
public OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace
return void

OnRemovalFromSolver() public method

Called when the updateable is removed from its solver.
public OnRemovalFromSolver ( Solver oldSolver ) : void
oldSolver Solver Solver from which the updateable was removed.
return void

OnRemovalFromSpace() public method

Called before an object is removed from its space.
public OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace
return void

SolveIteration() public abstract method

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

SolverUpdateable() protected method

protected SolverUpdateable ( ) : BEPUphysics.Constraints
return BEPUphysics.Constraints

TryEnterLock() public abstract method

Attempts to acquire a lock on the solver updateable. This allows operations that need exclusive access to the solver updateable's members. If it is contested, it aborts the attempt.
public abstract TryEnterLock ( ) : bool
return bool

Update() public abstract method

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

UpdateSolverActivity() public method

Updates the activity state of the solver updateable based on its members.
public UpdateSolverActivity ( ) : void
return void

Property Details

isActive protected_oe property

protected bool isActive
return bool

isActiveInSolver protected_oe property

protected bool isActiveInSolver
return bool

simulationIslandConnection protected_oe property

protected SimulationIslandConnection,BEPUphysics.DeactivationManagement simulationIslandConnection
return BEPUphysics.DeactivationManagement.SimulationIslandConnection

solver protected_oe property

protected Solver solver
return Solver

solverSettings protected_oe property

protected SolverSettings,BEPUphysics.Constraints solverSettings
return BEPUphysics.Constraints.SolverSettings

space protected_oe property

protected ISpace space
return ISpace