コード例 #1
0
 /// <summary>
 /// Constructs a grid-based sort and sweep broad phase.
 /// </summary>
 /// <param name="parallelLooper">Parallel loop provider to use for the broad phase.</param>
 public Grid2DSortAndSweep(IParallelLooper parallelLooper)
     : base(parallelLooper)
 {
     updateEntry      = UpdateEntry;
     updateCell       = UpdateCell;
     QueryAccelerator = new Grid2DSortAndSweepQueryAccelerator(this);
 }
コード例 #2
0
 /// <summary>
 /// Constructs a grid-based sort and sweep broad phase.
 /// </summary>
 public Grid2DSortAndSweep()
 {
     updateEntry      = UpdateEntry;
     updateCell       = UpdateCell;
     QueryAccelerator = new Grid2DSortAndSweepQueryAccelerator(this);
 }