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

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

Best Java code snippets using org.jbox2d.collision.broadphase.BroadPhase.createProxy (Showing top 5 results out of 315)

origin: libgdx/libgdx

public void createProxies(BroadPhase broadPhase, final Transform xf) {
 assert (m_proxyCount == 0);
 // Create proxies in the broad-phase.
 m_proxyCount = m_shape.getChildCount();
 for (int i = 0; i < m_proxyCount; ++i) {
  FixtureProxy proxy = m_proxies[i];
  m_shape.computeAABB(proxy.aabb, xf, i);
  proxy.proxyId = broadPhase.createProxy(proxy.aabb, proxy);
  proxy.fixture = this;
  proxy.childIndex = i;
 }
}
origin: jbox2d/jbox2d

public void createProxies(BroadPhase broadPhase, final Transform xf) {
 assert (m_proxyCount == 0);
 // Create proxies in the broad-phase.
 m_proxyCount = m_shape.getChildCount();
 for (int i = 0; i < m_proxyCount; ++i) {
  FixtureProxy proxy = m_proxies[i];
  m_shape.computeAABB(proxy.aabb, xf, i);
  proxy.proxyId = broadPhase.createProxy(proxy.aabb, proxy);
  proxy.fixture = this;
  proxy.childIndex = i;
 }
}
origin: com.github.almasb/fxgl-physics

public void createProxies(BroadPhase broadPhase, final Transform xf) {
  assert (proxyCount == 0);
  // Create proxies in the broad-phase.
  proxyCount = shape.getChildCount();
  for (int i = 0; i < proxyCount; ++i) {
    FixtureProxy proxy = m_proxies[i];
    shape.computeAABB(proxy.aabb, xf, i);
    proxy.proxyId = broadPhase.createProxy(proxy.aabb, proxy);
    proxy.fixture = this;
    proxy.childIndex = i;
  }
}
origin: andmizi/MobikeTags

public void createProxies(BroadPhase broadPhase, final Transform xf) {
 assert (m_proxyCount == 0);
 // Create proxies in the broad-phase.
 m_proxyCount = m_shape.getChildCount();
 for (int i = 0; i < m_proxyCount; ++i) {
  FixtureProxy proxy = m_proxies[i];
  m_shape.computeAABB(proxy.aabb, xf, i);
  proxy.proxyId = broadPhase.createProxy(proxy.aabb, proxy);
  proxy.fixture = this;
  proxy.childIndex = i;
 }
}
origin: org.jbox2d/jbox2d-library

public void createProxies(BroadPhase broadPhase, final Transform xf) {
 assert (m_proxyCount == 0);
 // Create proxies in the broad-phase.
 m_proxyCount = m_shape.getChildCount();
 for (int i = 0; i < m_proxyCount; ++i) {
  FixtureProxy proxy = m_proxies[i];
  m_shape.computeAABB(proxy.aabb, xf, i);
  proxy.proxyId = broadPhase.createProxy(proxy.aabb, proxy);
  proxy.fixture = this;
  proxy.childIndex = i;
 }
}
org.jbox2d.collision.broadphaseBroadPhasecreateProxy

Javadoc

Create a proxy with an initial AABB. Pairs are not reported until updatePairs is called.

Popular methods of BroadPhase

  • 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
  • testOverlap
  • raycast,
  • testOverlap,
  • touchProxy,
  • updatePairs,
  • <init>,
  • bufferMove,
  • unbufferMove

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • Kernel (java.awt.image)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Notification (javax.management)
  • Option (scala)
  • Github Copilot alternatives
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