Click or drag to resize
DigitalRuneICollisionFilter Interface
Represents a configurable collision filter supporting pairwise filtering and collision groups.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public interface ICollisionFilter : IPairFilter<CollisionObject>

The ICollisionFilter type exposes the following members.

Methods
  NameDescription
Public methodFilter
Filters the specified item pair.
(Inherited from IPairFilterT.)
Public methodGet(Int32)
Returns if collisions with the given collision group are enabled.
Public methodGet(Int32, Int32)
Returns if collisions between two collision groups are enabled.
Public methodGet(CollisionObject, CollisionObject)
Returns if collisions between two CollisionObjects are enabled (without testing collision groups).
Public methodSet(Int32, Boolean)
Enables or disables collisions with the given collision group.
Public methodSet(Int32, Int32, Boolean)
Enables or disables collisions between a pair of collision groups.
Public methodSet(CollisionObject, CollisionObject, Boolean)
Enables or disables collisions between the given CollisionObjects.
Top
Events
Remarks

Per default, all collisions are enabled. Collisions can be disabled for pairs of CollisionObjects, for a pair of collision groups, or for a whole collision group. Collision groups are identified by an Int32 ID, stored in the CollisionObject (see CollisionGroup).

Two collision objects A and B will NOT collide if one of the following conditions is met:

See Also