| CollisionDetectionUpdateContacts Method |
Updates the contact 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 UpdateContacts(
ContactSet contactSet,
float deltaTime
)
Public Sub UpdateContacts (
contactSet As ContactSet,
deltaTime As Single
)
public:
void UpdateContacts(
ContactSet^ contactSet,
float deltaTime
)
member UpdateContacts :
contactSet : ContactSet *
deltaTime : float32 -> unit
Parameters
- contactSet
- Type: DigitalRune.Geometry.CollisionsContactSet
The contact set containing the last known contacts. - 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 contact information will usually change and has to be updated.
Using the contact set containing the last known contacts, this method can compute the new
contacts faster than
GetContacts(CollisionObject, CollisionObject) if the poses of the objects haven't changed
drastically.
See Also