C# Class BEPUphysics.NarrowPhaseSystems.Pairs.CollidablePairHandler

Superclass of pairs between collidables that generate contact points.
Inheritance: BEPUphysics.NarrowPhaseSystems.Pairs.NarrowPhasePair
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Property Type Description
previousContactCount int
suppressEvents bool
timeOfImpact float

Public Methods

Method Description
CleanUp ( ) : void

Cleans up the pair handler.

ClearContacts ( ) : void

Forces the pair handler to clean out its contacts.

Initialize ( BroadPhaseEntry entryA, BroadPhaseEntry entryB ) : void

Initializes the pair handler.

UpdateMaterialProperties ( ) : void

Forces an update of the pair's material properties. Uses default choices (such as the owning entities' materials).

UpdateMaterialProperties ( InteractionProperties properties ) : void

Forces an update of the pair's material properties.

UpdateMaterialProperties ( BEPUphysics.Materials.Material materialA, BEPUphysics.Materials.Material materialB ) : 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
CollidablePairHandler ( ) : BEPUphysics.BroadPhaseEntries
GetContactInformation ( int index, ContactInformation &info ) : void
OnAddedToNarrowPhase ( ) : void

Called when the pair handler is added to the narrow phase.

OnContactAdded ( Contact contact ) : void
OnContactRemoved ( Contact contact ) : void

Method Details

CleanUp() public method

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

ClearContacts() public method

Forces the pair handler to clean out its contacts.
public ClearContacts ( ) : void
return void

CollidablePairHandler() protected method

protected CollidablePairHandler ( ) : BEPUphysics.BroadPhaseEntries
return BEPUphysics.BroadPhaseEntries

GetContactInformation() protected abstract method

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

Initialize() public method

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

OnAddedToNarrowPhase() protected method

Called when the pair handler is added to the narrow phase.
protected OnAddedToNarrowPhase ( ) : void
return void

OnContactAdded() protected method

protected OnContactAdded ( Contact contact ) : void
contact BEPUphysics.CollisionTests.Contact
return void

OnContactRemoved() protected method

protected OnContactRemoved ( Contact contact ) : void
contact BEPUphysics.CollisionTests.Contact
return void

UpdateMaterialProperties() public method

Forces an update of the pair's material properties. Uses default choices (such as the owning entities' materials).
public UpdateMaterialProperties ( ) : void
return void

UpdateMaterialProperties() public abstract method

Forces an update of the pair's material properties.
public abstract UpdateMaterialProperties ( InteractionProperties properties ) : void
properties BEPUphysics.Materials.InteractionProperties Properties to use in the collision.
return void

UpdateMaterialProperties() public abstract method

Forces an update of the pair's material properties.
public abstract UpdateMaterialProperties ( BEPUphysics.Materials.Material materialA, BEPUphysics.Materials.Material materialB ) : void
materialA BEPUphysics.Materials.Material First material to use.
materialB BEPUphysics.Materials.Material Second material to use.
return void

UpdateTimeOfImpact() public abstract method

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

Property Details

previousContactCount protected_oe property

protected int previousContactCount
return int

suppressEvents protected_oe property

protected bool suppressEvents
return bool

timeOfImpact protected_oe property

protected float timeOfImpact
return float