Ejemplo n.º 1
0
 public OverlapWorker(int workerIndex, BufferPool pool, NarrowPhase <TCallbacks> narrowPhase)
 {
     Batcher = new StreamingBatcher(pool, narrowPhase.CollisionTaskRegistry);
     Filters = new BatcherFilters(workerIndex, narrowPhase);
     ConstraintGenerators = new ConstraintGenerators(workerIndex, pool, narrowPhase);
     PendingConstraints   = new PendingConstraintAddCache(pool);
 }
Ejemplo n.º 2
0
 public OverlapWorker(int workerIndex, BufferPool pool, NarrowPhase <TCallbacks> narrowPhase)
 {
     Batcher = new StreamingBatcher(pool, narrowPhase.CollisionTaskRegistry);
     Filters = new BatcherFilters(workerIndex, narrowPhase);
     ConstraintGenerators = new ConstraintGenerators(workerIndex, pool, narrowPhase);
     PendingConstraints   = new PendingConstraintAddCache(pool);
     QuickList <int, Buffer <int> > .Create(pool.SpecializeFor <int>(), 16, out PendingSetAwakenings);
 }