update due to changes in gdx-toolbox's IntersectionTester

This commit is contained in:
Gered 2013-09-14 23:06:59 -04:00
parent 4aede47e4b
commit 0bc881aafd
2 changed files with 2 additions and 3 deletions

View file

@ -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")

View file

@ -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