Beispiel #1
0
 public static Vector2 SnapToGrid(Vector2 toSnap)
 {
     return(Vector2.Floor(toSnap / 8) * 8);
 }