Tabnine Logo
BroadPhase.touchProxy
Code IndexAdd Tabnine to your IDE (free)

How to use
touchProxy
method
in
org.jbox2d.collision.broadphase.BroadPhase

Best Java code snippets using org.jbox2d.collision.broadphase.BroadPhase.touchProxy (Showing top 10 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

int proxyCount = f.m_proxyCount;
for (int i = 0; i < proxyCount; ++i) {
 broadPhase.touchProxy(f.m_proxies[i].proxyId);
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

int proxyCount = f.m_proxyCount;
for (int i = 0; i < proxyCount; ++i) {
 broadPhase.touchProxy(f.m_proxies[i].proxyId);
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: andmizi/MobikeTags

int proxyCount = f.m_proxyCount;
for (int i = 0; i < proxyCount; ++i) {
 broadPhase.touchProxy(f.m_proxies[i].proxyId);
origin: com.github.almasb/fxgl-physics

int proxyCount = f.getProxyCount();
for (int i = 0; i < proxyCount; ++i) {
  broadPhase.touchProxy(f.m_proxies[i].proxyId);
origin: org.jbox2d/jbox2d-library

int proxyCount = f.m_proxyCount;
for (int i = 0; i < proxyCount; ++i) {
 broadPhase.touchProxy(f.m_proxies[i].proxyId);
org.jbox2d.collision.broadphaseBroadPhasetouchProxy

Popular methods of BroadPhase

  • createProxy
    Create a proxy with an initial AABB. Pairs are not reported until updatePairs is called.
  • destroyProxy
    Destroy a proxy. It is up to the client to remove any pairs.
  • drawTree
  • getFatAABB
  • getProxyCount
    Get the number of proxies.
  • getTreeBalance
  • getTreeHeight
    Get the height of the embedded tree.
  • getTreeQuality
  • getUserData
  • moveProxy
    Call MoveProxy as many times as you like, then when you are done call UpdatePairs to finalized the p
  • query
    Query an AABB for overlapping proxies. The callback class is called for each proxy that overlaps the
  • raycast
    Ray-cast against the proxies in the tree. This relies on the callback to perform a exact ray-cast in
  • query,
  • raycast,
  • testOverlap,
  • updatePairs,
  • <init>,
  • bufferMove,
  • unbufferMove

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for Android Studio
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