Package com.bulletphysics.collision.broadphase

Examples of com.bulletphysics.collision.broadphase.BroadphasePair


    float maxPen = 0.0f;
    for (int i=0; i<ghostObject.getOverlappingPairCache().getNumOverlappingPairs(); i++) {
      manifoldArray.clear();

      BroadphasePair collisionPair = ghostObject.getOverlappingPairCache().getOverlappingPairArray().getQuick(i);
                        //XXX: added no contact response
                        if (!((CollisionObject)collisionPair.pProxy0.clientObject).hasContactResponse()
                                 || !((CollisionObject)collisionPair.pProxy1.clientObject).hasContactResponse())
                                 continue;
      if (collisionPair.algorithm != null) {
View Full Code Here


      // call needsResponse, see http://code.google.com/p/bullet/issues/detail?id=179
      if (dispatcher.needsResponse(me, otherObj)) {
        // don't do CCD when there are already contact points (touching contact/penetration)
        ObjectArrayList<PersistentManifold> manifoldArray = new ObjectArrayList<PersistentManifold>();
        BroadphasePair collisionPair = pairCache.findPair(me.getBroadphaseHandle(), proxy0);
        if (collisionPair != null) {
          if (collisionPair.algorithm != null) {
            //manifoldArray.resize(0);
            collisionPair.algorithm.getAllContactManifolds(manifoldArray);
            for (int j=0; j<manifoldArray.size(); j++) {
View Full Code Here

  }
 
  public void findUnions(Dispatcher dispatcher, CollisionWorld colWorld) {
    ObjectArrayList<BroadphasePair> pairPtr = colWorld.getPairCache().getOverlappingPairArray();
    for (int i=0; i<pairPtr.size(); i++) {
      BroadphasePair collisionPair = pairPtr.getQuick(i);
     
      CollisionObject colObj0 = (CollisionObject) collisionPair.pProxy0.clientObject;
      CollisionObject colObj1 = (CollisionObject) collisionPair.pProxy1.clientObject;

      if (((colObj0 != null) && ((colObj0).mergesSimulationIslands())) &&
View Full Code Here

                    }
                }
                if (otherEntity == null) {
                    continue;
                }
                BroadphasePair pair = world.getPairCache().findPair(initialPair.pProxy0, initialPair.pProxy1);
                if (pair == null) {
                    continue;
                }
                manifolds.clear();
                if (pair.algorithm != null) {
View Full Code Here

TOP

Related Classes of com.bulletphysics.collision.broadphase.BroadphasePair

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.