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 public Vector3 Snapped(
Vector3 step
)
Parameters
- step
- Type: GodotVector3
A vector value representing the step size to snap to.
Return Value
Type:
Vector3The snapped vector.
See Also