internal ContactManager(IBroadPhase broadPhase) { ContactList = new ContactListHead(); ContactCount = 0; BroadPhase = broadPhase; OnBroadphaseCollision = AddPair; }
internal ContactManager(IBroadPhase <BodyProxy> broadPhase) { ContactList = new ContactListHead(); ContactCount = 0; _contactPoolList = new ContactListHead(); BroadPhase = broadPhase; OnBroadphaseCollision = AddPairBroadPhase; OnFixturePhaseCollision = AddPairFixturePhase; }
internal ContactManager(IBroadPhase broadPhase) { if (World.Multithreaded) { ThreadsToUse = Environment.ProcessorCount * 2; ThreadPool.SetMaxThreads(ThreadsToUse, ThreadsToUse); } ContactList = new ContactListHead(); ContactCount = 0; _contactPoolList = new ContactListHead(); BroadPhase = broadPhase; OnBroadphaseCollision += AddPair; }