Skip to content

ClampMagnitude

Description

ClampMagnitude is a Function on Vector2
Returns the given Vector2 with its magnitude clamped to the given value.

Example
local testVariable = Vector2.ClampMagnitude(Vector2.New(1, 1), 1.0)
Usage

network usage: Any (Client or Server/Host)
returns: Vector2
parameters:
- vector (Vector2)
- max (float)