Click or drag to resize
DigitalRuneCollisionFilterSet Method (Int32, Int32, Boolean)
Enables or disables collisions between a pair of collision groups.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public void Set(
	int groupA,
	int groupB,
	bool collisionsEnabled
)

Parameters

groupA
Type: SystemInt32
The first collision group.
groupB
Type: SystemInt32
The second collision group.
collisionsEnabled
Type: SystemBoolean
If set to collisions between objects in groupA and objects in groupB are enabled. Use to disable collisions.

Implements

ICollisionFilterSet(Int32, Int32, Boolean)
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptiongroupA is out of range.
ArgumentOutOfRangeExceptiongroupB is out of range.
Remarks
To disable collisions for objects within one group, this method can be called with groupA == groupB.
See Also