public class ContactFilter

  1. Object
  2. ContactFilter
Implement this class to provide collision filtering. In other words, you can implement this class if you want finer control over contact creation.

Constructors

public ContactFilter()

Methods

public boolean shouldCollide(Fixture fixtureA, Fixture fixtureB)Return true if contact calculations should be performed between these two shapes.

Inherited methods

Constructor details

ContactFilter

public ContactFilter()

Method details

shouldCollide

public boolean shouldCollide(Fixture fixtureA, Fixture fixtureB)
Return true if contact calculations should be performed between these two shapes.
Warning. for performance reasons this is only called when the AABBs begin to overlap.