public void Follow(Vector2 target) { Vector2 direction = target - start; Coordinate.Polar polar = Coordinate.CartesianToPolar(direction); angle = polar.angle; start = target - (direction.normalized * length); }
public void Follow(Vector2 target) { Vector2 direction = target - start; Coordinate.Polar polar = Coordinate.CartesianToPolar(direction); angle = polar.angle; start = target - (direction.normalized * length); }