Click or drag to resize
DigitalRuneCollisionDetectionUpdateClosestPoints Method
Updates the closest-point information in 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 void UpdateClosestPoints(
	ContactSet contactSet,
	float deltaTime
)

Parameters

contactSet
Type: DigitalRune.Geometry.CollisionsContactSet
The contact set containing the last known closest-point information.
deltaTime
Type: SystemSingle
The time step size in seconds. (The elapsed simulation time since UpdateClosestPoints(ContactSet, Single) or UpdateContacts(ContactSet, Single) was last called for this contact set.)
Exceptions
ExceptionCondition
ArgumentNullExceptioncontactSet is .
Remarks

If two objects move, the closest-point information will usually change and has to be updated. Using the contact set containing the last known closest points, this method can compute the new closest points faster than GetClosestPoints(CollisionObject, CollisionObject) if the poses of the objects haven't changed drastically.

Collision filtering (see CollisionFilter) is NOT applied.

See Also