public OverlapWorker(int workerIndex, BufferPool pool, NarrowPhase <TCallbacks> narrowPhase) { Batcher = new CollisionBatcher <CollisionCallbacks>(pool, narrowPhase.Shapes, narrowPhase.CollisionTaskRegistry, narrowPhase.timestepDuration, new CollisionCallbacks(workerIndex, pool, narrowPhase)); PendingConstraints = new PendingConstraintAddCache(pool); QuickList <int, Buffer <int> > .Create(pool.SpecializeFor <int>(), 16, out PendingSetAwakenings); }
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); }
public IntertreeOverlapHandler(Buffer <CollidableReference> leavesA, Buffer <CollidableReference> leavesB, NarrowPhase <TCallbacks> narrowPhase, int workerIndex) { LeavesA = leavesA; LeavesB = leavesB; NarrowPhase = narrowPhase; WorkerIndex = workerIndex; }
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); }
public ConstraintGenerators(int workerIndex, BufferPool pool, NarrowPhase <TCallbacks> narrowPhase) { this.pool = pool; this.workerIndex = workerIndex; this.narrowPhase = narrowPhase; discrete = new ContinuationCache <DiscretePair>(pool); linear = new ContinuationCache <LinearPair>(pool); substep = new ContinuationCache <SubstepPair>(pool); substepWithLinear = new ContinuationCache <SubstepWithLinearPair>(pool); }
public SelfOverlapHandler(Buffer <CollidableReference> leaves, NarrowPhase <TCallbacks> narrowPhase, int workerIndex) { Leaves = leaves; NarrowPhase = narrowPhase; WorkerIndex = workerIndex; }
public FreshnessChecker(NarrowPhase narrowPhase) { pairCache = narrowPhase.PairCache; constraintRemover = narrowPhase.ConstraintRemover; }
public BatcherFilters(int workerIndex, NarrowPhase <TCallbacks> narrowPhase) { this.workerIndex = workerIndex; this.narrowPhase = narrowPhase; }