예제 #1
0
        public DbvtBroadphase(IOverlappingPairCache paircache)
        {
            m_sets[0] = new Dbvt();
            m_sets[1] = new Dbvt();

            m_deferedcollide   = false;
            m_needcleanup      = true;
            m_releasepaircache = (paircache != null) ? false : true;
            m_prediction       = 0;
            m_stageCurrent     = 0;
            m_fixedleft        = 0;
            m_fupdates         = 1;
            m_dupdates         = 0;
            m_cupdates         = 10;
            m_newpairs         = 1;
            m_updates_call     = 0;
            m_updates_done     = 0;
            m_updates_ratio    = 0;
            m_paircache        = paircache != null ? paircache : new HashedOverlappingPairCache();
            m_gid = 0;
            m_pid = 0;
            m_cid = 0;
#if DBVT_BP_PROFILE
            m_profiling = new ProfileBlock();
            m_profiling.clear();
#endif
        }
예제 #2
0
        public DbvtBroadphase(IOverlappingPairCache paircache)
        {
            m_sets[0] = new Dbvt();
            m_sets[1] = new Dbvt();

            m_deferedcollide = false;
            m_needcleanup = true;
            m_releasepaircache = (paircache != null) ? false : true;
            m_prediction = 0;
            m_stageCurrent = 0;
            m_fixedleft = 0;
            m_fupdates = 1;
            m_dupdates = 0;
            m_cupdates = 10;
            m_newpairs = 1;
            m_updates_call = 0;
            m_updates_done = 0;
            m_updates_ratio = 0;
            m_paircache = paircache != null ? paircache : new HashedOverlappingPairCache();
            m_gid = 0;
            m_pid = 0;
            m_cid = 0;
#if DBVT_BP_PROFILE
            m_profiling = new ProfileBlock();
            m_profiling.clear();
#endif
        }