In my 2D game the char goes left and right on tapping and it’s running walls so on tapping I want it to make an arc like motion when going to other wall from point A to point B but come back to same initial position in y axis but in opposite side. Idk if I explained clearly in words so here’s a photo to explain more
I want to make an arc from point A to B back and forth, it should be smooth and it’s really important it should be in same line just opposite side everytime I tap. I have also searched quite a bit, a whole day I spent on it I found Bezier curves but I don’t think that would be smooth enough but if anyone can help me then I will really appreciate it, it’s taking too much of my time please help