Table of Contents

Struct b2Filter

Namespace
Gym.Box2D
Assembly
Gym.Environments.dll

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

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

ushort

groupIndex

The collision group (0: none).

public short groupIndex

Field Value

short

maskBits

The categories this fixture accepts collisions with.

public ushort maskBits

Field Value

ushort