Vector2.ClampMagnitude Manual     Reference     Scripting  
Scripting > Runtime Classes > Vector2
Vector2.ClampMagnitude

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

Description

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