Struct b2Filter
Collision filtering data: a fixture collides with another when each one's mask accepts the other's category, unless they share a non-zero group (positive: always collide, negative: never).
public struct b2Filter
- Inherited Members
- Extension Methods
Remarks
Reference: Box2D/Dynamics/b2Fixture.h.
Constructors
b2Filter()
Box2D's default filter: category 0x0001, mask 0xFFFF, no group.
public b2Filter()
Fields
categoryBits
The collision category bits; normally one bit set.
public ushort categoryBits
Field Value
groupIndex
The collision group (0: none).
public short groupIndex
Field Value
maskBits
The categories this fixture accepts collisions with.
public ushort maskBits