summaryrefslogtreecommitdiff
path: root/marching/Assets/Scripts/Physics/FastBoxCollider.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-05-09 13:14:14 +0800
committerchai <215380520@qq.com>2023-05-09 13:14:14 +0800
commitf986dc197b5e093575bc0b56ee0ded991c228639 (patch)
treebf13c22f38d9186422daa9b200f16143fc003464 /marching/Assets/Scripts/Physics/FastBoxCollider.cs
parentc35533e31efe30121a7c61a725fdaaba47714296 (diff)
*misc
Diffstat (limited to 'marching/Assets/Scripts/Physics/FastBoxCollider.cs')
-rw-r--r--marching/Assets/Scripts/Physics/FastBoxCollider.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/marching/Assets/Scripts/Physics/FastBoxCollider.cs b/marching/Assets/Scripts/Physics/FastBoxCollider.cs
index 7b52caf..03fbb24 100644
--- a/marching/Assets/Scripts/Physics/FastBoxCollider.cs
+++ b/marching/Assets/Scripts/Physics/FastBoxCollider.cs
@@ -36,6 +36,20 @@ public class FastBoxCollider : MonoBehaviour, IQuadTreeObject
}
}
+ public Vector4 box
+ {
+ get
+ {
+ Vector2 c = center;
+ Vector4 b = new Vector4();
+ b.x = c.x;
+ b.y = c.y;
+ b.z = size.x;
+ b.w = size.y;
+ return b;
+ }
+ }
+
public void Awake()
{
if (m_Type == ColliderType.Collider)