This project is part of my blog.http://www.cnblogs.com/tangzhenqiang/p/8459681.html And this project is just intended to show how to build a grid-based loose quadtree in Unity. The code isn't optimal and maybe has some bug,you could modify or debug yourself.
You can learn the knowledge of quadtree or octree from follow web sites:
https://anteru.net/blog/2008/11/14/315/index.html
http://www.kyleschouviller.com/wsuxna/quadtree-source-included/
http://www.tulrich.com/geekstuff/partitioning.html
http://cloudgrassland.com/2015/12/162-2/
这个项目是我博文的演示代码,它详细展示如何实现基于网格的四叉树。代码并非最佳,可能还有一些bug,你可自行修改。 你可以从如下网址学习四叉树~~
https://anteru.net/blog/2008/11/14/315/index.html
http://www.kyleschouviller.com/wsuxna/quadtree-source-included/