Click or drag to resize
DigitalRuneIContactFilter Interface
A filter which processes contacts in a contact set.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public interface IContactFilter

The IContactFilter type exposes the following members.

Methods
  NameDescription
Public methodFilter
Filters the specified contact set.
Top
Remarks
Contact filters are called in the narrow phase (in CollisionAlgorithms) to post-process the found contacts. Example usages of a contact filter:
  • Remove redundant contacts. Some applications, like rigid body physics, needs only a minimal set of contacts, e.g. only 4 contacts per ContactSet.
  • Remove "bad" contacts, for example contacts where the normal direction points into an undesired direction.
  • Merge contacts. For some applications it is useful to keep only one contact which is the average of all other contacts.
See Also