Tabnine Logo
ContactFilter
Code IndexAdd Tabnine to your IDE (free)

How to use
ContactFilter
in
org.jbox2d.callbacks

Best Java code snippets using org.jbox2d.callbacks.ContactFilter (Showing top 16 results out of 315)

origin: libgdx/libgdx

public ContactManager(World argPool, BroadPhase broadPhase) {
 m_contactList = null;
 m_contactCount = 0;
 m_contactFilter = new ContactFilter();
 m_contactListener = null;
 m_broadPhase = broadPhase;
 pool = argPool;
}
origin: libgdx/libgdx

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 Contact cNuke = c;
 c = cNuke.getNext();
origin: libgdx/libgdx

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 return;
origin: jbox2d/jbox2d

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 Contact cNuke = c;
 c = cNuke.getNext();
origin: libgdx/libgdx

/** Register a contact filter to provide specific control over collision. Otherwise the default filter is used
 * (b2_defaultFilter). The listener is owned by you and must remain in scope. */
public void setContactFilter (final ContactFilter filter) {
  if (filter != null) {
    world.setContactFilter(new org.jbox2d.callbacks.ContactFilter() {
      @Override
      public boolean shouldCollide (org.jbox2d.dynamics.Fixture fixtureA, org.jbox2d.dynamics.Fixture fixtureB) {
        return filter.shouldCollide(fixtures.get(fixtureA), fixtures.get(fixtureB));
      }
    });
  } else {
    world.setContactFilter(new org.jbox2d.callbacks.ContactFilter());
  }
}
origin: jbox2d/jbox2d

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 return;
origin: jbox2d/jbox2d

public ContactManager(World argPool, BroadPhase broadPhase) {
 m_contactList = null;
 m_contactCount = 0;
 m_contactFilter = new ContactFilter();
 m_contactListener = null;
 m_broadPhase = broadPhase;
 pool = argPool;
}
origin: andmizi/MobikeTags

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 Contact cNuke = c;
 c = cNuke.getNext();
origin: andmizi/MobikeTags

public ContactManager(World argPool, BroadPhase broadPhase) {
 m_contactList = null;
 m_contactCount = 0;
 m_contactFilter = new ContactFilter();
 m_contactListener = null;
 m_broadPhase = broadPhase;
 pool = argPool;
}
origin: org.jbox2d/jbox2d-library

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 Contact cNuke = c;
 c = cNuke.getNext();
origin: com.github.almasb/fxgl-physics

public ContactManager(World argPool, BroadPhase broadPhase) {
  m_contactList = null;
  m_contactCount = 0;
  m_contactFilter = new ContactFilter();
  m_contactListener = null;
  m_broadPhase = broadPhase;
  pool = argPool;
}
origin: andmizi/MobikeTags

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 return;
origin: org.jbox2d/jbox2d-library

public ContactManager(World argPool, BroadPhaseStrategy strategy) {
 m_contactList = null;
 m_contactCount = 0;
 m_contactFilter = new ContactFilter();
 m_contactListener = null;
 m_broadPhase = new BroadPhase(strategy);
 pool = argPool;
}
origin: com.github.almasb/fxgl-physics

if (m_contactFilter != null && !m_contactFilter.shouldCollide(fixtureA, fixtureB)) {
  return;
origin: com.github.almasb/fxgl-physics

if (m_contactFilter != null && !m_contactFilter.shouldCollide(fixtureA, fixtureB)) {
  Contact cNuke = c;
  c = cNuke.getNext();
origin: org.jbox2d/jbox2d-library

if (m_contactFilter != null && m_contactFilter.shouldCollide(fixtureA, fixtureB) == false) {
 return;
org.jbox2d.callbacksContactFilter

Javadoc

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

Most used methods

  • <init>
  • shouldCollide
    Return true if contact calculations should be performed between these two shapes.

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Path (java.nio.file)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now