Vector3.ClampMagnitude

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

Description

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