diff options
author | chai <215380520@qq.com> | 2023-05-09 13:14:14 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-09 13:14:14 +0800 |
commit | f986dc197b5e093575bc0b56ee0ded991c228639 (patch) | |
tree | bf13c22f38d9186422daa9b200f16143fc003464 /marching/Assets/Scripts/Physics/FastCircleCollider.cs | |
parent | c35533e31efe30121a7c61a725fdaaba47714296 (diff) |
*misc
Diffstat (limited to 'marching/Assets/Scripts/Physics/FastCircleCollider.cs')
-rw-r--r-- | marching/Assets/Scripts/Physics/FastCircleCollider.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/marching/Assets/Scripts/Physics/FastCircleCollider.cs b/marching/Assets/Scripts/Physics/FastCircleCollider.cs index 5884a69..dde49f9 100644 --- a/marching/Assets/Scripts/Physics/FastCircleCollider.cs +++ b/marching/Assets/Scripts/Physics/FastCircleCollider.cs @@ -35,6 +35,19 @@ public class FastCircleCollider : MonoBehaviour, IQuadTreeObject } } + public Vector3 circle + { + get + { + Vector3 c = new Vector3(); + Vector2 ct = center; + c.x = ct.x; + c.y = ct.y; + c.z = radius; + return c; + } + } + public Vector2 offset => m_Offset; public void Awake() |