I’m using these math helper functions currently:

```
public static class MathHelpers
{
public static Vector2 RadianToVector2(float radian)
{
return new Vector2(Mathf.Cos(radian), Mathf.Sin(radian));
}
public static Vector2 RadianToVector2(float radian, float length)
{
return RadianToVector2(radian) * length;
}
public static Vector2 DegreeToVector2(float degree)
{
return RadianToVector2(degree * Mathf.Deg2Rad);
}
public static Vector2 DegreeToVector2(float degree, float length)
{
return RadianToVector2(degree * Mathf.Deg2Rad) * length;
}
}
```

in my scripts.

Example:

```
public class MoveScript : MonoBehaviour
{
public float Angle = 90f;
public float Speed = 5f;
private void Update()
{
Vector3 velocity = MathHelpers.DegreeToVector2(Angle, Speed);
transform.position += velocity * Time.deltaTime;
}
}
```

But I bet there is built in way in Unity to accomplish this without requiring to use my MathHelpers class which I was using in XNA. But after searching for hours still can’t find method which can convert degree to Vector2 or Vector3 in Unity.

So how can I convert degree to Vector2/Vector3 to be able to use it as velocity?