summaryrefslogtreecommitdiff
path: root/marching/Assets/Scripts/Physics/FastBoxCollider.cs
diff options
context:
space:
mode:
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)