public static bool DoCollide(CircleCollider c1, CircleCollider c2) { float dist = MathUtils.GetDistance(c1.GetCenter(), c2.GetCenter()); float radsum = c1.GetRadius() + c2.GetRadius(); return(dist <= radsum); }
public static bool DoCollide(CircleCollider c1, CircleCollider c2) { float dist = MathUtils.GetDistance(c1.GetCenter(), c2.GetCenter()); float radsum = c1.GetRadius() + c2.GetRadius(); return(dist <= radsum); }