示例#1
0
        /// <inheritdoc />
        public BroadPhase()
        {
            _proxyCount   = 0;
            _tree         = new DynamicTree();
            _pairCapacity = 16;
            _pairCount    = 0;
            _pairBuffer   = new Pair[_pairCapacity];

            _moveCapacity = 16;
            _moveCount    = 0;
            _moveBuffer   = new int[_moveCapacity];
        }
示例#2
0
        /// <inheritdoc />
        public BroadPhase()
        {
            _proxyCount   = 0;
            _tree         = new DynamicTree();
            _pairCapacity = 16;
            _pairCount    = 0;
            _pairBuffer   = ArrayPool <Pair> .Shared.Rent(_pairCapacity);

            _moveCapacity = 16;
            _moveCount    = 0;
            _moveBuffer   = ArrayPool <int> .Shared.Rent(_moveCapacity);
        }
示例#3
0
        /// <inheritdoc />
        public BroadPhase()
        {
            _proxyCount   = 0;
            _tree         = new DynamicTree();
            _pairCapacity = 16;
            _pairCount    = 0;
            _pairBuffer   = new Pair[_pairCapacity];
            for (var i = 0; i < _pairBuffer.Length; i++)
            {
                _pairBuffer[i] = new Pair();
            }

            _moveCapacity = 16;
            _moveCount    = 0;
            _moveBuffer   = new int[_moveCapacity];
        }