Vector2.ClampMagnitude

Declaration

public static Vector2 ClampMagnitude(Vector2 vector, float maxLength);

Description

Returns a copy of vector with its magnitude clamped to maxLength.


Did you find this page useful? Please give it a rating: