Click or drag to resize
DigitalRuneContactHelper.RemoveBadContacts Method
Removes contacts where the contact normal points into an invalid direction.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static void RemoveBadContacts(
	ContactSet contactSet,
	Vector3F normal,
	float minDotProduct
)

Parameters

contactSet
Type: DigitalRune.Geometry.Collisions.ContactSet
The contact set.
normal
Type: DigitalRune.Mathematics.Algebra.Vector3F
The desired normal vector.
minDotProduct
Type: System.Single
The minimal allowed dot product of the contact normal and normal.
Remarks
For each contact this method computes the dot product of the contact normal and the given normal. If the dot product is less than minDotProduct the contact is removed.
See Also