C# Class BEPUphysics.EntityStateManagement.InterpolatedStatesManager

Manages the interpolated states of entities. Interpolated states are those based on the previous entity states and the current entity states, blended together using the time remainder from internal time stepping.
Inheritance: MultithreadedProcessingStage
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode Description
FlipBuffers ( ) : void

Acquires a lock on the FlipLocker and flips the internal buffers.

GetState ( int motionStateIndex ) : RigidTransform

Returns an interpolated state associated with an entity with the given index. Does not lock the FlipLocker.

GetStates ( RigidTransform states ) : void

Gets the interpolated states of all entities.

InterpolatedStatesManager ( BufferedStatesManager manager ) : System

Constructs a new interpolated states manager.

InterpolatedStatesManager ( BufferedStatesManager manager, IThreadManager threadManager ) : System

Constructs a new interpolated states manager.

Méthodes protégées

Méthode Description
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Private Methods

Méthode Description
Add ( Entity e ) : void
Disable ( ) : void
Enable ( ) : void
Remove ( int index, int endIndex ) : void
UpdateIndex ( int i ) : void

Method Details

FlipBuffers() public méthode

Acquires a lock on the FlipLocker and flips the internal buffers.
public FlipBuffers ( ) : void
Résultat void

GetState() public méthode

Returns an interpolated state associated with an entity with the given index. Does not lock the FlipLocker.
public GetState ( int motionStateIndex ) : RigidTransform
motionStateIndex int Motion state of the entity.
Résultat BEPUutilities.RigidTransform

GetStates() public méthode

Gets the interpolated states of all entities.
Thrown when the array is too small to hold the states.
public GetStates ( RigidTransform states ) : void
states BEPUutilities.RigidTransform Interpolated states of all entities.
Résultat void

InterpolatedStatesManager() public méthode

Constructs a new interpolated states manager.
public InterpolatedStatesManager ( BufferedStatesManager manager ) : System
manager BufferedStatesManager Owning buffered states manager.
Résultat System

InterpolatedStatesManager() public méthode

Constructs a new interpolated states manager.
public InterpolatedStatesManager ( BufferedStatesManager manager, IThreadManager threadManager ) : System
manager BufferedStatesManager Owning buffered states manager.
threadManager IThreadManager Thread manager to use.
Résultat System

UpdateMultithreaded() protected méthode

protected UpdateMultithreaded ( ) : void
Résultat void

UpdateSingleThreaded() protected méthode

protected UpdateSingleThreaded ( ) : void
Résultat void