Esempio n. 1
0
 public CollisionWorld(INarrowphase narrowphase, IBroadphase broadphase)
 {
     _colliders = new List<CollisionBody>(200);
     _broadphase = broadphase;
     _narrowphase = narrowphase;
     _forceUpdateAABBs = true;
 }
Esempio n. 2
0
 public CollisionWorld(INarrowphase narrowphase, IBroadphase broadphase)
 {
     _colliders        = new List <CollisionBody>(200);
     _broadphase       = broadphase;
     _narrowphase      = narrowphase;
     _forceUpdateAABBs = true;
 }
Esempio n. 3
0
        public World(BeatEmUpGame game, IBroadphase bp, INarrowphase np)
        {
            this.game = game;
            if (bp == null)
            {
                throw new ArgumentException("broadphase can not be null!", "bp");
            }

            if (np == null)
            {
                throw new ArgumentException("narrowphase can not be null!", "np");
            }
            Broadphase  = bp;
            Narrowphase = np;
            colliders   = new List <Body>(128);
        }