Click or drag to resize
DigitalRuneCollisionDetectionCollisionFilter Property
Gets or sets the collision filter for contact queries.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public IPairFilter<CollisionObject> CollisionFilter { get; set; }

Property Value

Type: IPairFilterCollisionObject
The collision filter (can be to enable all collisions and disable filtering). The default value is .
Remarks

This filter can be used to disable collision detection between selected collision objects. This filter is ignored in closest-point queries (see GetClosestPoints(CollisionObject, CollisionObject) and UpdateClosestPoints(ContactSet, Single)). It is used for HaveAabbContact(CollisionObject, CollisionObject), HaveContact(CollisionObject, CollisionObject), GetContacts(CollisionObject, CollisionObject) and UpdateContacts(ContactSet, Single).

Per default, this property is and all collisions are enabled. If collision filtering is needed, CollisionFilter or a custom implementation of IPairFilterT can be used.

See Also