diff options
Diffstat (limited to 'marching/Assets/Scripts/Physics/Quadtree.cs')
-rw-r--r-- | marching/Assets/Scripts/Physics/Quadtree.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/marching/Assets/Scripts/Physics/Quadtree.cs b/marching/Assets/Scripts/Physics/Quadtree.cs index 4185f1f..f1237ab 100644 --- a/marching/Assets/Scripts/Physics/Quadtree.cs +++ b/marching/Assets/Scripts/Physics/Quadtree.cs @@ -8,6 +8,8 @@ using System.Runtime.InteropServices.WindowsRuntime; using Unity.VisualScripting; using UnityEngine; +// https://gamedev.stackexchange.com/questions/6345/quad-tree-vs-grid-based-collision-detection + namespace mh { @@ -16,6 +18,9 @@ namespace mh public Vector4 bound { get; } } + /// <summary> + /// ËIJæÊ÷¿Õ¼ä·Ö¸î + /// </summary> public class Quadtree { public const int kMaxObjectsPerBlock = 5; |