C# Класс BEPUphysics.PositionUpdating.ContinuousPositionUpdater

Updates objects according to the position update mode. This allows continuous objects to avoid missing collisions.
Наследование: PositionUpdater
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MultithreadingThreshold int

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Приватные методы

Метод Описание
PreUpdate ( int i ) : void
UpdateContinuousItem ( int i ) : void
UpdateTimeOfImpact ( int i ) : void

Описание методов

Add() публичный Метод

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.
Результат void

ContinuousPositionUpdater() публичный Метод

Constructs the position updater.
public ContinuousPositionUpdater ( TimeStepSettings timeStepSettings ) : System
timeStepSettings TimeStepSettings Time step settings to use.
Результат System

ContinuousPositionUpdater() публичный Метод

Constructs the position updater.
public ContinuousPositionUpdater ( TimeStepSettings timeStepSettings, IThreadManager threadManager ) : System
timeStepSettings TimeStepSettings Time step settings to use.
threadManager IThreadManager Thread manager to use.
Результат System

Remove() публичный Метод

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.
Результат void

UpdateMultithreaded() защищенный Метод

protected UpdateMultithreaded ( ) : void
Результат void

UpdateSingleThreaded() защищенный Метод

protected UpdateSingleThreaded ( ) : void
Результат void

UpdateableModeChanged() публичный Метод

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.
Результат void

Описание свойств

MultithreadingThreshold публичное статическое свойство

Number of objects in a list required to use multithreading.
public static int MultithreadingThreshold
Результат int