diff options
author | chai <215380520@qq.com> | 2023-06-29 10:04:49 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-06-29 10:04:49 +0800 |
commit | 6dbca86d957f774059068b8dbe01170d71cb0e8f (patch) | |
tree | 7b7f9511f70ceee27944741eaa850f05431354eb /WorldlineKeepers/Assets/Scripts/Tests/TestQuadtree.cs | |
parent | 05cb0609b1ddef5380a7c9442605cbfdad4df192 (diff) |
*misc
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Tests/TestQuadtree.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Tests/TestQuadtree.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Tests/TestQuadtree.cs b/WorldlineKeepers/Assets/Scripts/Tests/TestQuadtree.cs new file mode 100644 index 0000000..2ea967e --- /dev/null +++ b/WorldlineKeepers/Assets/Scripts/Tests/TestQuadtree.cs @@ -0,0 +1,32 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using mh; +using MH; +using Unity.VisualScripting; + +namespace mh +{ + [DefaultExecutionOrder(-1000)] + public class TestQuadtree : MonoBehaviour + { + + private void Awake() + { + } + + private void FixedUpdate() + { + var pos = UnitManager.hero.transform.position; + PhysicsManager.Instance.collisionQuadtreeRange = new Vector4(pos.x, pos.y, 30, 20); + PhysicsManager.Instance.hurtboxQuadtreeRange = new Vector4(pos.x, pos.y, 30, 20); + PhysicsManager.Instance.Update(); + } + + private void OnDrawGizmos() + { + PhysicsManager.Instance.Debug(); + } + } + +} |