Click or drag to resize

Vector2Clamped Method

Returns the vector with a maximum length by limiting its length to `length`.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 Clamped(
	float length
)

Parameters

length
Type: SystemSingle
The length to limit to.

Return Value

Type: Vector2
The vector with its length limited.
See Also