Package com.bulletphysics.collision.broadphase.AxisSweep3Internal

Examples of com.bulletphysics.collision.broadphase.AxisSweep3Internal.Handle


    Handle handle = (Handle) proxy;
    updateHandle(handle.uniqueId, aabbMin, aabbMax, dispatcher);
  }
 
  public boolean testAabbOverlap(BroadphaseProxy proxy0, BroadphaseProxy proxy1) {
    Handle pHandleA = (Handle)proxy0;
    Handle pHandleB = (Handle)proxy1;

    // optimization 1: check the array index (memory address), instead of the m_pos

    for (int axis = 0; axis < 3; axis++) {
      if (pHandleA.getMaxEdges(axis) < pHandleB.getMinEdges(axis) ||
          pHandleB.getMaxEdges(axis) < pHandleA.getMinEdges(axis)) {
        return false;
      }
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of com.bulletphysics.collision.broadphase.AxisSweep3Internal.Handle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.