Package com.bulletphysics.collision.broadphase

Examples of com.bulletphysics.collision.broadphase.BroadphaseProxy


  /**
   * This method is mainly for expert/internal use only.
   */
  @Override
  public void addOverlappingObjectInternal(BroadphaseProxy otherProxy, BroadphaseProxy thisProxy) {
    BroadphaseProxy actualThisProxy = thisProxy != null? thisProxy : getBroadphaseHandle();
    assert(actualThisProxy != null);

    CollisionObject otherObject = (CollisionObject) otherProxy.clientObject;
    assert (otherObject != null);

View Full Code Here


  }

  @Override
  public void removeOverlappingObjectInternal(BroadphaseProxy otherProxy, Dispatcher dispatcher, BroadphaseProxy thisProxy1) {
    CollisionObject otherObject = (CollisionObject)otherProxy.clientObject;
    BroadphaseProxy actualThisProxy = thisProxy1 != null? thisProxy1 : getBroadphaseHandle();
    assert(actualThisProxy != null);

    assert (otherObject != null);
    int index = overlappingObjects.indexOf(otherObject);
    if (index != -1) {
View Full Code Here

  public void destroy() {
    // clean up remaining objects
    for (int i = 0; i < collisionObjects.size(); i++) {
      CollisionObject collisionObject = collisionObjects.getQuick(i);

      BroadphaseProxy bp = collisionObject.getBroadphaseHandle();
      if (bp != null) {
        //
        // only clear the cached algorithms
        //
        getBroadphase().getOverlappingPairCache().cleanProxyFromPairs(bp, dispatcher1);
View Full Code Here

 
  public void removeCollisionObject(CollisionObject collisionObject) {
    //bool removeFromBroadphase = false;

    {
      BroadphaseProxy bp = collisionObject.getBroadphaseHandle();
      if (bp != null) {
        //
        // only clear the cached algorithms
        //
        getBroadphase().getOverlappingPairCache().cleanProxyFromPairs(bp, dispatcher1);
View Full Code Here

TOP

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

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.