C# Class BEPUphysics.CollisionTests.ContactReducer

Helper class that reduces contact manifolds to reasonable numbers of contacts.
Afficher le fichier Open project: Indiefreaks/igf

Méthodes publiques

Méthode Description
ReduceContacts ( RawList contacts, ContactData &contactCandidate, RawList toRemove, bool &addCandidate ) : void

Reduces a 4-contact manifold and contact candidate to 4 total contacts.

ReduceContacts ( RawList contacts, RawValueList contactCandidates, RawList contactsToRemove, RawValueList toAdd ) : void

Reduces the contact manifold to a good subset.

Method Details

ReduceContacts() public static méthode

Reduces a 4-contact manifold and contact candidate to 4 total contacts.
Thrown when the contact manifold being reduced doesn't have 4 contacts.
public static ReduceContacts ( RawList contacts, ContactData &contactCandidate, RawList toRemove, bool &addCandidate ) : void
contacts RawList Contacts to reduce.
contactCandidate ContactData Contact candidate to include in the reduction process.
toRemove RawList Contacts that need to be removed to reduce the manifold.
addCandidate bool Whether or not to add the contact candidate to reach the reduced manifold.
Résultat void

ReduceContacts() public static méthode

Reduces the contact manifold to a good subset.
Thrown when the set being reduced is empty.
public static ReduceContacts ( RawList contacts, RawValueList contactCandidates, RawList contactsToRemove, RawValueList toAdd ) : void
contacts RawList Contacts to reduce.
contactCandidates RawValueList Contact candidates to include in the reduction process.
contactsToRemove RawList Contacts that need to removed to reach the reduced state.
toAdd RawValueList Contact candidates that should be added to reach the reduced state.
Résultat void