diff --git a/src/com/blarg/gdx/tilemap3d/TileContainer.java b/src/com/blarg/gdx/tilemap3d/TileContainer.java index 4a3d80e..3004d10 100644 --- a/src/com/blarg/gdx/tilemap3d/TileContainer.java +++ b/src/com/blarg/gdx/tilemap3d/TileContainer.java @@ -9,7 +9,6 @@ import com.blarg.gdx.math.IntersectionTester; import com.blarg.gdx.math.MathHelpers; import com.blarg.gdx.tilemap3d.tilemesh.TileMesh; import com.blarg.gdx.tilemap3d.tilemesh.TileMeshCollection; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; public abstract class TileContainer { static final Vector3 tmp1 = new Vector3(); @@ -67,7 +66,7 @@ public abstract class TileContainer { public boolean getOverlappedTiles(BoundingBox box, TileCoord min, TileCoord max) { // make sure the given box actually intersects with this TileContainer in the first place - if (!IntersectionTester.overlaps(getBounds(), box)) + if (!IntersectionTester.test(getBounds(), box)) return false; // convert to tile coords (these will be in "world/tilemap space") diff --git a/src/com/blarg/gdx/tilemap3d/TileMap.java b/src/com/blarg/gdx/tilemap3d/TileMap.java index 83360bb..22e9313 100644 --- a/src/com/blarg/gdx/tilemap3d/TileMap.java +++ b/src/com/blarg/gdx/tilemap3d/TileMap.java @@ -155,7 +155,7 @@ public class TileMap extends TileContainer implements Disposable { public boolean getOverlappedChunks(BoundingBox box, TileCoord min, TileCoord max) { // make sure the given box actually intersects with the map in the first place - if (!IntersectionTester.overlaps(bounds, box)) + if (!IntersectionTester.test(bounds, box)) return false; // convert to tile coords. this is in "tilemap space" which is how we want it