topical media & game development

talk show tell print

mobile-query-three-plugins-cannonjs-vendor-cannon.js-src-collision-Broadphase.js / js



  /*global CANNON:true */
  
  
@class CANNON.Broadphase
author: schteppe @brief Base class for broadphase implementations

  
  CANNON.Broadphase = function(){
      
@property CANNON.World world @brief The world to search for collisions in. @memberof CANNON.Broadphase

  
      this.world = null;
  };
  CANNON.Broadphase.prototype.constructor = CANNON.BroadPhase;
  
  
@method collisionPairs @memberof CANNON.Broadphase @brief Get the collision pairs from the world
parameter: CANNON.World world The world to search in
returns: array An array with two subarrays of body indices

  
  CANNON.Broadphase.prototype.collisionPairs = function(world){
      throw "collisionPairs not implemented for this BroadPhase class!";
  };
  
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.