C# Class BEPUphysics.NarrowPhaseSystems.Pairs.GroupPairHandler

Superclass of pairs which manage multiple sub-collidable pairs.
Inheritance: CollidablePairHandler, IPairHandlerParent
Datei anzeigen Open project: Indiefreaks/igf

Public Methods

Method Description
CleanUp ( ) : void

Cleans up the pair handler.

ClearContacts ( ) : void

Clears the pair's contacts.

Initialize ( BroadPhaseEntry entryA, BroadPhaseEntry entryB ) : void

Initializes the pair handler.

UpdateCollision ( float dt ) : void

Updates the pair handler.

UpdateMaterialProperties ( InteractionProperties properties ) : void

Updates the material interaction properties of the pair handler's constraint.

UpdateMaterialProperties ( BEPUphysics.Materials.Material a, BEPUphysics.Materials.Material b ) : void

Forces an update of the pair's material properties.

UpdateTimeOfImpact ( Collidable requester, float dt ) : void

Updates the time of impact for the pair.

Protected Methods

Method Description
GetContactInformation ( int index, ContactInformation &info ) : void
GroupPairHandler ( ) : System

Constructs a new compound-convex pair handler.

TryToAdd ( Collidable a, Collidable b ) : void
TryToAdd ( Collidable a, Collidable b, BEPUphysics.Materials.Material materialA ) : void
TryToAdd ( Collidable a, Collidable b, BEPUphysics.Materials.Material materialA, BEPUphysics.Materials.Material materialB ) : void
UpdateContacts ( float dt ) : void

Updates the pair handler's contacts.

UpdateContainedPairs ( ) : void

Private Methods

Method Description
IPairHandlerParent ( Contact contact ) : void
IPairHandlerParent ( EntitySolverUpdateable addedItem ) : void

Method Details

CleanUp() public method

Cleans up the pair handler.
public CleanUp ( ) : void
return void

ClearContacts() public method

Clears the pair's contacts.
public ClearContacts ( ) : void
return void

GetContactInformation() protected method

protected GetContactInformation ( int index, ContactInformation &info ) : void
index int
info ContactInformation
return void

GroupPairHandler() protected method

Constructs a new compound-convex pair handler.
protected GroupPairHandler ( ) : System
return System

Initialize() public method

Initializes the pair handler.
public Initialize ( BroadPhaseEntry entryA, BroadPhaseEntry entryB ) : void
entryA BEPUphysics.BroadPhaseEntries.BroadPhaseEntry First entry in the pair.
entryB BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Second entry in the pair.
return void

TryToAdd() protected method

protected TryToAdd ( Collidable a, Collidable b ) : void
a BEPUphysics.BroadPhaseEntries.Collidable
b BEPUphysics.BroadPhaseEntries.Collidable
return void

TryToAdd() protected method

protected TryToAdd ( Collidable a, Collidable b, BEPUphysics.Materials.Material materialA ) : void
a BEPUphysics.BroadPhaseEntries.Collidable
b BEPUphysics.BroadPhaseEntries.Collidable
materialA BEPUphysics.Materials.Material
return void

TryToAdd() protected method

protected TryToAdd ( Collidable a, Collidable b, BEPUphysics.Materials.Material materialA, BEPUphysics.Materials.Material materialB ) : void
a BEPUphysics.BroadPhaseEntries.Collidable
b BEPUphysics.BroadPhaseEntries.Collidable
materialA BEPUphysics.Materials.Material
materialB BEPUphysics.Materials.Material
return void

UpdateCollision() public method

Updates the pair handler.
public UpdateCollision ( float dt ) : void
dt float Timestep duration.
return void

UpdateContacts() protected method

Updates the pair handler's contacts.
protected UpdateContacts ( float dt ) : void
dt float Timestep duration.
return void

UpdateContainedPairs() protected abstract method

protected abstract UpdateContainedPairs ( ) : void
return void

UpdateMaterialProperties() public method

Updates the material interaction properties of the pair handler's constraint.
public UpdateMaterialProperties ( InteractionProperties properties ) : void
properties BEPUphysics.Materials.InteractionProperties Properties to use.
return void

UpdateMaterialProperties() public method

Forces an update of the pair's material properties.
public UpdateMaterialProperties ( BEPUphysics.Materials.Material a, BEPUphysics.Materials.Material b ) : void
a BEPUphysics.Materials.Material Material of the first member of the pair.
b BEPUphysics.Materials.Material Material of the second member of the pair.
return void

UpdateTimeOfImpact() public method

Updates the time of impact for the pair.
public UpdateTimeOfImpact ( Collidable requester, float dt ) : void
requester BEPUphysics.BroadPhaseEntries.Collidable Collidable requesting the update.
dt float Timestep duration.
return void