Edge tweaks

This commit is contained in:
Anuken
2020-05-15 19:59:42 -04:00
parent 381df23bf2
commit 1cefaf28db
3 changed files with 10 additions and 5 deletions

View File

@@ -1,9 +1,10 @@
package mindustry.world;
import arc.math.Mathf;
import arc.math.*;
import arc.math.geom.*;
import mindustry.gen.*;
import java.util.Arrays;
import java.util.*;
import static mindustry.Vars.world;
@@ -49,6 +50,10 @@ public class Edges{
}
}
public static Tile getFacingEdge(Tilec tile, Tilec other){
return getFacingEdge(tile.block(), tile.tileX(), tile.tileY(), other.tile());
}
public static Tile getFacingEdge(Tile tile, Tile other){
return getFacingEdge(tile.block, tile.x, tile.y, other);
}