| val | The value to round. |
| snap | The increment to round to. |
float The rounded value.
Rounds value to the closest multiple of snap.
| val | The value to round. |
| snap | The increment to round to. |
Vector2 The rounded value.
Rounds value to the closest multiple of snap.
| val | The value to round. |
| snap | The increment to round to. |
| axis | Restrict snapping to the components on these axes. |
Vector3 The rounded value.
Rounds value to the closest multiple of snap.
Did you find this page useful? Please give it a rating: