Degree between Vector2(rigidBody2d.velocity.x, rigidBody2d.velocity.y) vs. Vector2(rigidBody2d.velocity.y, rigidBody2d.velocity.x) is 45. Why? How can I have 90?

Given a Vector of **(x,y)**, to find a perpendicular vector you use:

- Vector
**(y, -x)**for clockwise - Vector
**(-y, x)**for anti-clockwise

You can get the angle of a 2D vector using: Mathf.Atan2 (y, x). This will give you the angle in radians of that vector. You can get therefore get the angle between two vectors using Mathf.Atan2 (y1, x1) - Mathf.Atan2 (y2, x2).

I am so sorry for wasting your time. I really did not mean to do that. I should not have asked that question. Sorry again.