Click or drag to resize
DigitalRuneCollisionDomainHasContact Method
Determines whether the specified collision object has contact with any other object in the domain.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public bool HasContact(
	CollisionObject collisionObject
)

Parameters

collisionObject
Type: DigitalRune.Geometry.CollisionsCollisionObject
The collision object.

Return Value

Type: Boolean
if the specified collision object touches or penetrates another object in the collision domain; otherwise, .
Exceptions
ExceptionCondition
ArgumentNullExceptioncollisionObject is .
Remarks

If collisionObject is 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 collision object has 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 collisionObject is not part of this CollisionDomain, then this method automatically calculates the new contact information.

See Also