Click or drag to resize
DigitalRuneContactHelperMerge Method (ContactSet, ContactSet, CollisionQueryType, Single)
Merges a new set of contacts into the given contact set.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static void Merge(
	ContactSet target,
	ContactSet newContacts,
	CollisionQueryType type,
	float contactPositionTolerance
)

Parameters

target
Type: DigitalRune.Geometry.CollisionsContactSet
The target contact. (Must not be .)
newContacts
Type: DigitalRune.Geometry.CollisionsContactSet
The contact set to merge. (Must not be .)
type
Type: DigitalRune.Geometry.CollisionsCollisionQueryType
The type of collision query.
contactPositionTolerance
Type: SystemSingle
The contact position tolerance.
Exceptions
ExceptionCondition
ArgumentNullExceptiontarget is .
Remarks

This method calls Merge(ContactSet, Contact, CollisionQueryType, Single) for all contacts in newContacts.

Important: The Contacts in newContacts will be recycled and cannot be used after this method call.

See Also