# Class ContactFilter

java.lang.Object
com.codename1.gaming.physics.box2d.callbacks.ContactFilter

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContactFilter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `shouldCollide(Fixture fixtureA, Fixture fixtureB)`
  Return true if contact calculations should be performed between these two shapes.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.
    Parameters:
      `fixtureA` -
      `fixtureB` -
    Returns: