| ContactHelperRemoveBadContacts Method |
Removes contacts where the contact normal points into an invalid direction.
Namespace: DigitalRune.Geometry.CollisionsAssembly: 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
)
Public Shared Sub RemoveBadContacts (
contactSet As ContactSet,
normal As Vector3F,
minDotProduct As Single
)
public:
static void RemoveBadContacts(
ContactSet^ contactSet,
Vector3F normal,
float minDotProduct
)
static member RemoveBadContacts :
contactSet : ContactSet *
normal : Vector3F *
minDotProduct : float32 -> unit
Parameters
- contactSet
- Type: DigitalRune.Geometry.CollisionsContactSet
The contact set. - normal
- Type: DigitalRune.Mathematics.AlgebraVector3F
The desired normal vector. - minDotProduct
- Type: SystemSingle
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