ClampMagnitude(Vector2, float)
Creates a copy of a given vector, with its magnitude clamped to a maximum length.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static Vector2 ClampMagnitude(Vector2 vector, float maxLength)
Parameters
Returns
Type | Description |
|---|---|
| Vector2 | A copy of |