Click or drag to resize

Vector3Snapped Method

Returns this vector with each component snapped to the nearest multiple of `step`. This can also be used to round to an arbitrary number of decimals.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3 Snapped(
	Vector3 step
)

Parameters

step
Type: GodotVector3
A vector value representing the step size to snap to.

Return Value

Type: Vector3
The snapped vector.
See Also