C# Class BEPUphysics.Constraints.Collision.ContactManifoldConstraint

Superclass of collision constraints that include multiple contact subconstraints.
Inheritance: BEPUphysics.Constraints.SolverGroups.SolverGroup
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Property Type Description
entityA Entity
entityB Entity
pair BEPUphysics.NarrowPhaseSystems.Pairs.CollidablePairHandler

Public Methods

Method Description
AddContact ( Contact contact ) : void

Adds a contact to be managed by the constraint.

CleanUp ( ) : void

Cleans up the constraint.

Initialize ( Entity a, Entity b, CollidablePairHandler newPair ) : void

Initializes the constraint.

OnRemovalFromSolver ( Solver oldSolver ) : void

Called when the updateable is removed from its solver.

RemoveContact ( Contact contact ) : void

Removes a contact from the constraint.

UpdateMaterialProperties ( BEPUphysics.Materials.Material materialA, BEPUphysics.Materials.Material materialB ) : void

Updates the material properties associated with the constraint.

UpdateSolverActivity ( ) : void

Sets the activity state of the constraint based on the activity state of its connections. Called automatically by the space owning a constaint. If a constraint is a sub-constraint that hasn't been directly added to the space, this may need to be called alongside the preStep from within the parent constraint.

Protected Methods

Method Description
CleanUpReferences ( ) : void
CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void
OnInvolvedEntitiesChanged ( ) : void

Method Details

AddContact() public abstract method

Adds a contact to be managed by the constraint.
public abstract AddContact ( Contact contact ) : void
contact BEPUphysics.CollisionTests.Contact Contact to add.
return void

CleanUp() public abstract method

Cleans up the constraint.
public abstract CleanUp ( ) : void
return void

CleanUpReferences() protected method

protected CleanUpReferences ( ) : void
return void

CollectInvolvedEntities() protected method

protected CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void
outputInvolvedEntities RawList
return void

Initialize() public method

Initializes the constraint.
public Initialize ( Entity a, Entity b, CollidablePairHandler newPair ) : void
a Entity First entity of the pair.
b Entity Second entity of the pair.
newPair BEPUphysics.NarrowPhaseSystems.Pairs.CollidablePairHandler Pair owning this constraint.
return void

OnInvolvedEntitiesChanged() protected method

protected OnInvolvedEntitiesChanged ( ) : void
return void

OnRemovalFromSolver() public method

Called when the updateable is removed from its solver.
public OnRemovalFromSolver ( Solver oldSolver ) : void
oldSolver Solver Solver from which the updateable was removed.
return void

RemoveContact() public abstract method

Removes a contact from the constraint.
public abstract RemoveContact ( Contact contact ) : void
contact BEPUphysics.CollisionTests.Contact Contact to remove.
return void

UpdateMaterialProperties() public method

Updates the material properties associated with the constraint.
public UpdateMaterialProperties ( BEPUphysics.Materials.Material materialA, BEPUphysics.Materials.Material materialB ) : void
materialA BEPUphysics.Materials.Material Material associated with the first entity of the pair.
materialB BEPUphysics.Materials.Material Material associated with the second entity of the pair.
return void

UpdateSolverActivity() public method

Sets the activity state of the constraint based on the activity state of its connections. Called automatically by the space owning a constaint. If a constraint is a sub-constraint that hasn't been directly added to the space, this may need to be called alongside the preStep from within the parent constraint.
public UpdateSolverActivity ( ) : void
return void

Property Details

entityA protected_oe property

protected Entity entityA
return Entity

entityB protected_oe property

protected Entity entityB
return Entity

pair protected_oe property

protected CollidablePairHandler,BEPUphysics.NarrowPhaseSystems.Pairs pair
return BEPUphysics.NarrowPhaseSystems.Pairs.CollidablePairHandler