C# Class BEPUphysics.NarrowPhaseSystems.Pairs.CollidablePairHandler

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

Protected Properties

Свойство Type Description
previousContactCount int
suppressEvents bool
timeOfImpact float

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Cleans up the pair handler.
public CleanUp ( ) : void
Résultat void

ClearContacts() public méthode

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

CollidablePairHandler() protected méthode

protected CollidablePairHandler ( ) : BEPUphysics.BroadPhaseEntries
Résultat BEPUphysics.BroadPhaseEntries

GetContactInformation() protected abstract méthode

protected abstract GetContactInformation ( int index, ContactInformation &info ) : void
index int
info ContactInformation
Résultat void

Initialize() public méthode

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.
Résultat void

OnAddedToNarrowPhase() protected méthode

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

OnContactAdded() protected méthode

protected OnContactAdded ( Contact contact ) : void
contact BEPUphysics.CollisionTests.Contact
Résultat void

OnContactRemoved() protected méthode

protected OnContactRemoved ( Contact contact ) : void
contact BEPUphysics.CollisionTests.Contact
Résultat void

UpdateMaterialProperties() public méthode

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

UpdateMaterialProperties() public abstract méthode

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.
Résultat void

UpdateMaterialProperties() public abstract méthode

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.
Résultat void

UpdateTimeOfImpact() public abstract méthode

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.
Résultat void

Property Details

previousContactCount protected_oe property

protected int previousContactCount
Résultat int

suppressEvents protected_oe property

protected bool suppressEvents
Résultat bool

timeOfImpact protected_oe property

protected float timeOfImpact
Résultat float