[]
Restricts a vector between a minimum and a maximum value.
public static Vector3 Clamp(Vector3 value, Vector3 min, Vector3 max)
Type | Name | Description |
---|---|---|
Vector3 | value | The vector to restrict. |
Vector3 | min | The minimum value. |
Vector3 | max | The maximum value. |
Type | Description |
---|---|
Vector3 | The restricted vector. |