示例#1
0
        private void SetDbvtBroadphaseInfo(DbvtBroadphase dbvtBroadphase, TreeNode broadphaseNode)
        {
            var  sets       = dbvtBroadphase.Sets;
            Dbvt dynamicSet = sets[0];
            Dbvt staticSet  = sets[1];

            TreeNode dynamicSetNode = GetOrCreateChildNode(dynamicSet, "Dynamic set", broadphaseNode);

            SetDbvtInfo(dynamicSet, dynamicSetNode);

            TreeNode staticSetNode = GetOrCreateChildNode(staticSet, "Static set", broadphaseNode);

            SetDbvtInfo(staticSet, staticSetNode);

            RemoveMissingObjects(sets, broadphaseNode);
        }
示例#2
0
 private void SetDbvtInfo(Dbvt dbvtSet, TreeNode dbvtNode)
 {
     SetDbvtNodeInfo(dbvtSet.Root, dbvtNode);
 }