C# 클래스 BEPUphysics.CollisionTests.ContactReducer

Helper class that reduces contact manifolds to reasonable numbers of contacts.
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

메소드 설명
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.

메소드 상세

ReduceContacts() 공개 정적인 메소드

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.
리턴 void

ReduceContacts() 공개 정적인 메소드

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.
리턴 void