diff options
author | chai <215380520@qq.com> | 2023-05-12 10:32:11 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-12 10:32:11 +0800 |
commit | 2fc9585797067730f28b03b0727bf05f9deed091 (patch) | |
tree | 8807e37b85ba922045eaa17ac445dd0a1d2d730c /marching/Assets/Scripts/TestAABB.cs | |
parent | 2a1cd4fda8a4a8e649910d16b4dfa1ce7ae63543 (diff) |
+ worldline keepers
Diffstat (limited to 'marching/Assets/Scripts/TestAABB.cs')
-rw-r--r-- | marching/Assets/Scripts/TestAABB.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/marching/Assets/Scripts/TestAABB.cs b/marching/Assets/Scripts/TestAABB.cs deleted file mode 100644 index ed33ab3..0000000 --- a/marching/Assets/Scripts/TestAABB.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using Unity.VisualScripting; -using UnityEngine; - -public class TestAABB : MonoBehaviour -{ - - public Vector4 ray; - - public Vector2 size; - - private void Awake() - { - - } - - private void OnDrawGizmos() - { - if(PhysicsManager.RayVsBox(ray, new Vector4(transform.position.x, transform.position.y, size.x, size.y))) - { - Gizmos.color = Color.red; - } - else - { - Gizmos.color = Color.white; - } - Gizmos.DrawLine(ray.xy().ToVector3(), ray.xy().ToVector3() + ray.zw().ToVector3()); - Gizmos.DrawCube(transform.position, size.ToVector3()); - } - -} |