I would like to rotate a 2D object smoothly using .MoveRotation. (The object is constantly moving around the target object through a set of waypoints)
I tried this and it didn’t work:
rb2d.MoveRotation(angle * Time.deltaTime);
rb2d.MoveRotation(angle * speed * Time.deltaTime);
The angle gets updated every Update() so that my object can rotate towards the target object:
direction = target.transform.position - transform.position;
float ang = Vector2.Angle(rb2d.transform.position, direction);
if this question has already been answered please lead me to it. I couldn’t find any solving my problem