Beispiel #1
0
    public void Follow(Vector2 target)
    {
        Vector2 direction = target - start;

        Coordinate.Polar polar = Coordinate.CartesianToPolar(direction);
        angle = polar.angle;

        start = target - (direction.normalized * length);
    }