I have a Vector2 named "steering". How do I set its magnitude(length)? Is there actually a Vector2 method, or will I have to write my own function?

The vector you must first normalize, then multiply it by your target size.

vector.normalized() * new_size

In case you didn't know, vector.normalized() returns the original vector with a length of one.

3 years later