Lerp a vector2?,Lerp a Vector2?
Ok so i need to lerp this thing:
Vector2 direction = target.position - transform.position;
float angle = Mathf.Atan2(direction.y, direction.x) * Mathf.Rad2Deg;
angle -= (float) 270;
partToRotate.rotation = Quaternion.AngleAxis(angle, Vector3.forward);
I can't find anything really understandable in others question.
Comment
Your answer
Follow this Question
Related Questions
How to use Vector2.Lerp in two arrays 0 Answers
Vector2.lerp dashing problem 0 Answers
Help with Vector2.Lerp 2 Answers
Lerping at a constant rate? 2 Answers
what wrong with lerp. 1 Answer