Table of Contents

Class b2ContactFilter

Namespace
Gym.Box2D
Assembly
Gym.Environments.dll

Decides whether two fixtures may collide; the default reads their b2Filters.

public class b2ContactFilter
Inheritance
b2ContactFilter
Inherited Members
Extension Methods

Methods

ShouldCollide(b2Fixture, b2Fixture)

Box2D's default filter: fixtures of the same non-zero group always (positive) or never (negative) collide; otherwise each one's mask must accept the other's category.

public virtual bool ShouldCollide(b2Fixture fixtureA, b2Fixture fixtureB)

Parameters

fixtureA b2Fixture

The first fixture.

fixtureB b2Fixture

The second fixture.

Returns

bool

True when contact calculations should be performed between these two fixtures.