diff options
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() |