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
ファイルを表示 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Private Methods

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

Method Details

FlipBuffers() public method

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

GetState() public method

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.
return BEPUutilities.RigidTransform

GetStates() public method

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.
return void

InterpolatedStatesManager() public method

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

InterpolatedStatesManager() public method

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.
return System

UpdateMultithreaded() protected method

protected UpdateMultithreaded ( ) : void
return void

UpdateSingleThreaded() protected method

protected UpdateSingleThreaded ( ) : void
return void