We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
todo 那裡有點暴力
QuadTreePathFinding/Assets/Script/Tool/CellMaker.cs
Line 126 in e8a971e
既然已經是quadTree,改成逐一測試每個Rect 就可以避免無謂的測試
doIt(node,rect,depth){ if(depth >max_depth) return; if(NodeIsIntersectWithColliderRect(node,rect) | NodeIsContainColliderRectsVertex(node,rect)){ // 有需要才Split if(childNode.count==0){ node.SplitTo4(); } // 往下遞迴 foreach(childnode in childs) doIt(childnode,Rect,++depth) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
todo 那裡有點暴力
QuadTreePathFinding/Assets/Script/Tool/CellMaker.cs
Line 126 in e8a971e
既然已經是quadTree,改成逐一測試每個Rect
就可以避免無謂的測試
The text was updated successfully, but these errors were encountered: