update due to changes in gdx-toolbox's IntersectionTester
This commit is contained in:
parent
4aede47e4b
commit
0bc881aafd
|
@ -9,7 +9,6 @@ import com.blarg.gdx.math.IntersectionTester;
|
||||||
import com.blarg.gdx.math.MathHelpers;
|
import com.blarg.gdx.math.MathHelpers;
|
||||||
import com.blarg.gdx.tilemap3d.tilemesh.TileMesh;
|
import com.blarg.gdx.tilemap3d.tilemesh.TileMesh;
|
||||||
import com.blarg.gdx.tilemap3d.tilemesh.TileMeshCollection;
|
import com.blarg.gdx.tilemap3d.tilemesh.TileMeshCollection;
|
||||||
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
|
||||||
|
|
||||||
public abstract class TileContainer {
|
public abstract class TileContainer {
|
||||||
static final Vector3 tmp1 = new Vector3();
|
static final Vector3 tmp1 = new Vector3();
|
||||||
|
@ -67,7 +66,7 @@ public abstract class TileContainer {
|
||||||
|
|
||||||
public boolean getOverlappedTiles(BoundingBox box, TileCoord min, TileCoord max) {
|
public boolean getOverlappedTiles(BoundingBox box, TileCoord min, TileCoord max) {
|
||||||
// make sure the given box actually intersects with this TileContainer in the first place
|
// 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;
|
return false;
|
||||||
|
|
||||||
// convert to tile coords (these will be in "world/tilemap space")
|
// convert to tile coords (these will be in "world/tilemap space")
|
||||||
|
|
|
@ -155,7 +155,7 @@ public class TileMap extends TileContainer implements Disposable {
|
||||||
|
|
||||||
public boolean getOverlappedChunks(BoundingBox box, TileCoord min, TileCoord max) {
|
public boolean getOverlappedChunks(BoundingBox box, TileCoord min, TileCoord max) {
|
||||||
// make sure the given box actually intersects with the map in the first place
|
// 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;
|
return false;
|
||||||
|
|
||||||
// convert to tile coords. this is in "tilemap space" which is how we want it
|
// convert to tile coords. this is in "tilemap space" which is how we want it
|
||||||
|
|
Loading…
Reference in a new issue