CollisionDomainHaveContact Method |
Namespace: DigitalRune.Geometry.Collisions
Exception | Condition |
---|---|
ArgumentNullException | objectA or objectB is . |
If both collision objects are part of this CollisionDomain, then this method checks the currently cached contacts sets (which are stored in ContactSets). The contact sets are only updated, when Update(TimeSpan) is called. If the objects have moved since the collision domain was updated last, the contact information will not be up-to-date. In this case you need to call Update(TimeSpan) again before calling GetContacts(CollisionObject) to get up-to-date results.
If one collision object is not part of this CollisionDomain, then this method automatically calculates the new contact information.