C# Class BEPUphysics.OtherSpaceStages.SpaceObjectBuffer

Thead-safely buffers up space objects for addition and removal.
Inheritance: ProcessingStage
Show file Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
Add ( ISpaceObject spaceObject ) : void

Adds a space object to the buffer. It will be added to the space the next time the buffer is flushed.

Remove ( ISpaceObject spaceObject ) : void

Enqueues a removal request to the buffer. It will be processed the next time the buffer is flushed.

SpaceObjectBuffer ( ISpace space ) : BEPUutilities

Constructs the buffer.

Protected Methods

Method Description
UpdateStage ( ) : void

Method Details

Add() public method

Adds a space object to the buffer. It will be added to the space the next time the buffer is flushed.
public Add ( ISpaceObject spaceObject ) : void
spaceObject ISpaceObject Space object to add.
return void

Remove() public method

Enqueues a removal request to the buffer. It will be processed the next time the buffer is flushed.
public Remove ( ISpaceObject spaceObject ) : void
spaceObject ISpaceObject Space object to remove.
return void

SpaceObjectBuffer() public method

Constructs the buffer.
public SpaceObjectBuffer ( ISpace space ) : BEPUutilities
space ISpace Space that owns the buffer.
return BEPUutilities

UpdateStage() protected method

protected UpdateStage ( ) : void
return void