Vector2.ClampMagnitude

static function ClampMagnitude (vector : Vector2, maxLength : float) : Vector2

Description

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