Exemplo n.º 1
0
        internal ContactManager(IBroadPhase broadPhase)
        {
            ContactList  = new ContactListHead();
            ContactCount = 0;

            BroadPhase            = broadPhase;
            OnBroadphaseCollision = AddPair;
        }
Exemplo n.º 2
0
        internal ContactManager(IBroadPhase <BodyProxy> broadPhase)
        {
            ContactList      = new ContactListHead();
            ContactCount     = 0;
            _contactPoolList = new ContactListHead();

            BroadPhase              = broadPhase;
            OnBroadphaseCollision   = AddPairBroadPhase;
            OnFixturePhaseCollision = AddPairFixturePhase;
        }
Exemplo n.º 3
0
        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;
        }