Clarify criteria of grid spacing subdivision

This commit is contained in:
OliBomby 2024-09-23 16:39:09 +02:00
parent 0a5a463380
commit fe10621771
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ public void SetGridFromPoints(Vector2 point1, Vector2 point2)
} }
// Divide the distance so that there is a good density of grid lines. // Divide the distance so that there is a good density of grid lines.
// This matches the maximum grid size of the grid size cycling hotkey.
float dist = Vector2.Distance(point1, point2); float dist = Vector2.Distance(point1, point2);
while (dist >= max_automatic_spacing) while (dist >= max_automatic_spacing)
dist /= 2; dist /= 2;