how do I set the velocity of a rigidbody to an angle/direction instead of Vector3?

I have a direction that I would like my rigidbody to move towards, the way that the rigidbody.velocity works is in Vector3 format, however I would like to move at a certain degree angle, how might I achieve this?

There’s no one-to-one mapping between (single) angles and 3-d vectors, but one way to build a vector from an angle is as follows (C#):

Vector3 v = new Vector3(Mathf.Cos(angle), Mathf.Sin(angle), 0f);

You can of course swap the elements around and/or negate the terms as needed.