diff --git a/src/lib.rs b/src/lib.rs index d373790..d97faa3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,9 +27,7 @@ impl Position { /// Peret de recuper la position, sous form d'un transform, d'un objet sur la carte du jeu. pub fn to_map_position(&self) -> Transform { let offset_x = self.y % 2; - let new_x = (offset_x as f32).mul_add(0.5, self.x as f32); - Transform::from_xyz(new_x, self.y as f32 * 0.42, self.y as f32 * -1.) } }