Noise surface

This commit is contained in:
StephenAdamson
2024-12-20 22:45:30 +00:00
parent 4141a1b430
commit 1d292d080b
7 changed files with 105 additions and 46 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ pub fn move_cursor(
return;
};
transform.1.translation = Vec3::new(
((point.x / (TILE_SIZE)+0.5).floor()) * TILE_SIZE,
((point.y / (TILE_SIZE)+0.5).floor()) * TILE_SIZE,
((point.x / (TILE_SIZE) + 0.5).floor()) * TILE_SIZE,
((point.y / (TILE_SIZE) + 0.5).floor()) * TILE_SIZE,
100.0,
);
}