C# Class BEPUphysics.PositionUpdating.ContinuousPositionUpdater

Updates objects according to the position update mode. This allows continuous objects to avoid missing collisions.
Inheritance: PositionUpdater
Show file Open project: Indiefreaks/igf Class Usage Examples

Public Properties

Property Type Description
MultithreadingThreshold int

Public Methods

Method Description
Add ( IPositionUpdateable updateable ) : void

Adds an object to the position updater.

ContinuousPositionUpdater ( TimeStepSettings timeStepSettings ) : System

Constructs the position updater.

ContinuousPositionUpdater ( TimeStepSettings timeStepSettings, IThreadManager threadManager ) : System

Constructs the position updater.

Remove ( IPositionUpdateable updateable ) : void

Removes an updateable from the updater.

UpdateableModeChanged ( ICCDPositionUpdateable updateable, PositionUpdateMode previousMode ) : void

Notifies the position updater that an updateable has changed state.

Protected Methods

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

Private Methods

Method Description
PreUpdate ( int i ) : void
UpdateContinuousItem ( int i ) : void
UpdateTimeOfImpact ( int i ) : void

Method Details

Add() public method

Adds an object to the position updater.
Thrown if the updateable already belongs to a position updater.
public Add ( IPositionUpdateable updateable ) : void
updateable IPositionUpdateable Updateable to add.
return void

ContinuousPositionUpdater() public method

Constructs the position updater.
public ContinuousPositionUpdater ( TimeStepSettings timeStepSettings ) : System
timeStepSettings TimeStepSettings Time step settings to use.
return System

ContinuousPositionUpdater() public method

Constructs the position updater.
public ContinuousPositionUpdater ( TimeStepSettings timeStepSettings, IThreadManager threadManager ) : System
timeStepSettings TimeStepSettings Time step settings to use.
threadManager IThreadManager Thread manager to use.
return System

Remove() public method

Removes an updateable from the updater.
Thrown if the updater does not own the updateable.
public Remove ( IPositionUpdateable updateable ) : void
updateable IPositionUpdateable Item to remove.
return void

UpdateMultithreaded() protected method

protected UpdateMultithreaded ( ) : void
return void

UpdateSingleThreaded() protected method

protected UpdateSingleThreaded ( ) : void
return void

UpdateableModeChanged() public method

Notifies the position updater that an updateable has changed state.
public UpdateableModeChanged ( ICCDPositionUpdateable updateable, PositionUpdateMode previousMode ) : void
updateable ICCDPositionUpdateable Updateable with changed state.
previousMode PositionUpdateMode Previous state the updateable was in.
return void

Property Details

MultithreadingThreshold public static property

Number of objects in a list required to use multithreading.
public static int MultithreadingThreshold
return int