Tabnine Logo
Contact.flagForFiltering
Code IndexAdd Tabnine to your IDE (free)

How to use
flagForFiltering
method
in
org.jbox2d.dynamics.contacts.Contact

Best Java code snippets using org.jbox2d.dynamics.contacts.Contact.flagForFiltering (Showing top 15 results out of 315)

origin: libgdx/libgdx

/**
 * Call this if you want to establish collision that was previously disabled by
 * ContactFilter::ShouldCollide.
 */
public void refilter() {
 if (m_body == null) {
  return;
 }
 // Flag associated contacts for filtering.
 ContactEdge edge = m_body.getContactList();
 while (edge != null) {
  Contact contact = edge.contact;
  Fixture fixtureA = contact.getFixtureA();
  Fixture fixtureB = contact.getFixtureB();
  if (fixtureA == this || fixtureB == this) {
   contact.flagForFiltering();
  }
  edge = edge.next;
 }
 World world = m_body.getWorld();
 if (world == null) {
  return;
 }
 // Touch each proxy so that new pairs may be created
 BroadPhase broadPhase = world.m_contactManager.m_broadPhase;
 for (int i = 0; i < m_proxyCount; ++i) {
  broadPhase.touchProxy(m_proxies[i].proxyId);
 }
}
origin: libgdx/libgdx

edge.contact.flagForFiltering();
origin: libgdx/libgdx

edge.contact.flagForFiltering();
origin: jbox2d/jbox2d

/**
 * Call this if you want to establish collision that was previously disabled by
 * ContactFilter::ShouldCollide.
 */
public void refilter() {
 if (m_body == null) {
  return;
 }
 // Flag associated contacts for filtering.
 ContactEdge edge = m_body.getContactList();
 while (edge != null) {
  Contact contact = edge.contact;
  Fixture fixtureA = contact.getFixtureA();
  Fixture fixtureB = contact.getFixtureB();
  if (fixtureA == this || fixtureB == this) {
   contact.flagForFiltering();
  }
  edge = edge.next;
 }
 World world = m_body.getWorld();
 if (world == null) {
  return;
 }
 // Touch each proxy so that new pairs may be created
 BroadPhase broadPhase = world.m_contactManager.m_broadPhase;
 for (int i = 0; i < m_proxyCount; ++i) {
  broadPhase.touchProxy(m_proxies[i].proxyId);
 }
}
origin: jbox2d/jbox2d

edge.contact.flagForFiltering();
origin: jbox2d/jbox2d

edge.contact.flagForFiltering();
origin: com.github.almasb/fxgl-physics

/**
 * Call this if you want to establish collision that was previously disabled by
 * ContactFilter::ShouldCollide.
 */
public void refilter() {
  // Flag associated contacts for filtering.
  ContactEdge edge = body.getContactList();
  while (edge != null) {
    Contact contact = edge.contact;
    Fixture fixtureA = contact.getFixtureA();
    Fixture fixtureB = contact.getFixtureB();
    if (fixtureA == this || fixtureB == this) {
      contact.flagForFiltering();
    }
    edge = edge.next;
  }
  World world = body.getWorld();
  if (world == null) {
    return;
  }
  // Touch each proxy so that new pairs may be created
  BroadPhase broadPhase = world.m_contactManager.m_broadPhase;
  for (int i = 0; i < proxyCount; ++i) {
    broadPhase.touchProxy(m_proxies[i].proxyId);
  }
}
origin: andmizi/MobikeTags

/**
 * Call this if you want to establish collision that was previously disabled by
 * ContactFilter::ShouldCollide.
 */
public void refilter() {
 if (m_body == null) {
  return;
 }
 // Flag associated contacts for filtering.
 ContactEdge edge = m_body.getContactList();
 while (edge != null) {
  Contact contact = edge.contact;
  Fixture fixtureA = contact.getFixtureA();
  Fixture fixtureB = contact.getFixtureB();
  if (fixtureA == this || fixtureB == this) {
   contact.flagForFiltering();
  }
  edge = edge.next;
 }
 World world = m_body.getWorld();
 if (world == null) {
  return;
 }
 // Touch each proxy so that new pairs may be created
 BroadPhase broadPhase = world.m_contactManager.m_broadPhase;
 for (int i = 0; i < m_proxyCount; ++i) {
  broadPhase.touchProxy(m_proxies[i].proxyId);
 }
}
origin: org.jbox2d/jbox2d-library

/**
 * Call this if you want to establish collision that was previously disabled by
 * ContactFilter::ShouldCollide.
 */
public void refilter() {
 if (m_body == null) {
  return;
 }
 // Flag associated contacts for filtering.
 ContactEdge edge = m_body.getContactList();
 while (edge != null) {
  Contact contact = edge.contact;
  Fixture fixtureA = contact.getFixtureA();
  Fixture fixtureB = contact.getFixtureB();
  if (fixtureA == this || fixtureB == this) {
   contact.flagForFiltering();
  }
  edge = edge.next;
 }
 World world = m_body.getWorld();
 if (world == null) {
  return;
 }
 // Touch each proxy so that new pairs may be created
 BroadPhase broadPhase = world.m_contactManager.m_broadPhase;
 for (int i = 0; i < m_proxyCount; ++i) {
  broadPhase.touchProxy(m_proxies[i].proxyId);
 }
}
origin: com.github.almasb/fxgl-physics

edge.contact.flagForFiltering();
origin: org.jbox2d/jbox2d-library

edge.contact.flagForFiltering();
origin: andmizi/MobikeTags

edge.contact.flagForFiltering();
origin: com.github.almasb/fxgl-physics

edge.contact.flagForFiltering();
origin: andmizi/MobikeTags

edge.contact.flagForFiltering();
origin: org.jbox2d/jbox2d-library

edge.contact.flagForFiltering();
org.jbox2d.dynamics.contactsContactflagForFiltering

Javadoc

Flag this contact for filtering. Filtering will occur the next time step.

Popular methods of Contact

  • getFixtureA
    Get the first fixture in this contact.
  • getFixtureB
    Get the second fixture in this contact.
  • setEnabled
    Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is
  • getManifold
    Get the contact manifold. Do not set the point count to zero. Instead call Disable.
  • evaluate
  • getChildIndexA
  • getChildIndexB
  • getNext
    Get the next contact in the world's contact list.
  • init
    initialization for pooling
  • isEnabled
    Has this contact been disabled?
  • isTouching
    Is this contact touching
  • mixFriction
    Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For examp
  • isTouching,
  • mixFriction,
  • mixRestitution,
  • update,
  • getWorldManifold,
  • setTangentSpeed,
  • getFriction,
  • getRestitution,
  • getTangentSpeed

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JFrame (javax.swing)
  • Best plugins for Eclipse
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