Skip to content

ClampMagnitude

Description

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

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

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