Hi guys
I am looking for a solution to create a ball movement which transforms by scale at the same time as movement (simulating a 2d ball flight). At the moment this is an example of my code which only contains the translate movement in a coroutine.
IEnumerator ServeA () {
while (Vector2.Distance(ball.transform.position, serve_left_position[4]) > 0.01f) {
ball.transform.position = Vector2.MoveTowards(ball.transform.position, serve_left_position [4], transitionspeed * speedmodifier * Time.deltaTime);
yield return null;
}
Is there a way to combine it easily into this script or will I have rework the code? Maybe even recommend an asset which will make my job easier?
Thanks in advance!
Aden