| CollisionDetectionUpdateClosestPoints Method |
Updates the closest-point information in the given contact set.
Namespace: DigitalRune.Geometry.CollisionsAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public void UpdateClosestPoints(
ContactSet contactSet,
float deltaTime
)
Public Sub UpdateClosestPoints (
contactSet As ContactSet,
deltaTime As Single
)
public:
void UpdateClosestPoints(
ContactSet^ contactSet,
float deltaTime
)
member UpdateClosestPoints :
contactSet : ContactSet *
deltaTime : float32 -> unit
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 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