| IContactFilter Interface |
A filter which processes contacts in a contact set.
Namespace: DigitalRune.Geometry.CollisionsAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public interface IContactFilter
Public Interface IContactFilter
public interface class IContactFilter
type IContactFilter = interface end
The IContactFilter type exposes the following members.
Methods
| Name | Description |
---|
| Filter |
Filters the specified contact set.
|
TopRemarks
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