Package com.bulletphysics.collision.broadphase

Examples of com.bulletphysics.collision.broadphase.CollisionAlgorithm.processCollision()


        CollisionAlgorithm Algorithm = GLOBAL.jBullet.myWorld
            .getDispatcher().findAlgorithm(rigidBody, bodies[i]);//getDispatcher()->findAlgorithm( pBulletObj1, pBulletObj2 );
        ManifoldResult manifoldResult = new ManifoldResult(rigidBody,
            bodies[i]);
        Algorithm.processCollision(rigidBody, bodies[i],
            GLOBAL.jBullet.myWorld.getDispatchInfo(),
            manifoldResult);
        PersistentManifold pManifold = manifoldResult
            .getPersistentManifold();
        if (pManifold != null){
View Full Code Here


      CollisionAlgorithm algor = newAlgorithm(body0, body1);
      // post :  checkManifold is called

      resultOut.setShapeIdentifiers(part0, triface0, part1, triface1);

      algor.processCollision(body0, body1, dispatchInfo, resultOut);

      //algor.destroy();
      dispatcher.freeCollisionAlgorithm(algor);
    }
View Full Code Here

      //    btConvexConvexAlgorithm cvxcvxalgo(m_manifoldPtr,ci,m_convexBody,m_triBody);

      resultOut.setShapeIdentifiers(-1, -1, partId, triangleIndex);
      //cvxcvxalgo.setShapeIdentifiers(-1,-1,partId,triangleIndex);
      //cvxcvxalgo.processCollision(m_convexBody,m_triBody,*m_dispatchInfoPtr,m_resultOut);
      colAlgo.processCollision(convexBody, triBody, dispatchInfoPtr, resultOut);
      //colAlgo.destroy();
      ci.dispatcher1.freeCollisionAlgorithm(colAlgo);
      ob.internalSetTemporaryCollisionShape(tmpShape);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.