| CollisionFilterSet Method (Int32, Int32, Boolean) |
Enables or disables collisions between a pair of collision groups.
Namespace: DigitalRune.Geometry.CollisionsAssembly: 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
)
Public Sub Set (
groupA As Integer,
groupB As Integer,
collisionsEnabled As Boolean
)
public:
virtual void Set(
int groupA,
int groupB,
bool collisionsEnabled
) sealed
abstract Set :
groupA : int *
groupB : int *
collisionsEnabled : bool -> unit
override Set :
groupA : int *
groupB : int *
collisionsEnabled : bool -> unit
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 Remarks
To disable collisions for objects within one group, this method can be called with
groupA == groupB.
See Also