Beispiel #1
0
    public bool CircleLineIntersect(Vector2 start, Vector2 end)
    {
        if (MathEx.BetweenLineAndCircle(tp.position, GetColliderInfo().radius, start, end) > 0)
        {
            return(true);
        }

        return(false);
    }