How to turn an object smoothly to avoiding sharp edges?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By anbarasu chinna

In my 2D game player is moving left and right to avoid obstacles coming from top. But player turn sharply it is not looking smooth. How to turn smoothly?

what do you mean by turn? like switching directions? and have you tried using the “lerp” function?

veridical | 2020-10-12 02:45

My player will move only on x axis, ie LEFT or RIGHT while taping on screen.
My application prototype
It should turn like a smooth wave like SINE or COSINE

anbarasu chinna | 2020-10-14 13:14