ICollisionFilter Interface |
Namespace: DigitalRune.Geometry.Collisions
The ICollisionFilter type exposes the following members.
Name | Description | |
---|---|---|
Filter |
Filters the specified item pair.
(Inherited from IPairFilterT.) | |
Get(Int32) |
Returns if collisions with the given collision group are enabled.
| |
Get(Int32, Int32) |
Returns if collisions between two collision groups are enabled.
| |
Get(CollisionObject, CollisionObject) |
Returns if collisions between two CollisionObjects are
enabled (without testing collision groups).
| |
Set(Int32, Boolean) |
Enables or disables collisions with the given collision group.
| |
Set(Int32, Int32, Boolean) |
Enables or disables collisions between a pair of collision groups.
| |
Set(CollisionObject, CollisionObject, Boolean) |
Enables or disables collisions between the given CollisionObjects.
|
Name | Description | |
---|---|---|
Changed |
Occurs when the filter rules were changed.
(Inherited from IPairFilterT.) |
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: