work
This commit is contained in:
@@ -47,10 +47,10 @@ public class MeshBounds {
|
||||
Bounds.meshBoundsCache = DbManager.BuildingQueries.LOAD_MESH_BOUNDS();
|
||||
}
|
||||
|
||||
public Area getArea(){
|
||||
public Area getArea(float x, float z){
|
||||
Polygon area = new Polygon();
|
||||
area.addPoint((int) this.minX, (int) this.minZ);
|
||||
area.addPoint((int) this.maxX, (int) this.maxZ);
|
||||
area.addPoint((int)(x + this.minX), (int) (z + this.minZ));
|
||||
area.addPoint((int)(x + this.maxX), (int)(z + this.maxZ));
|
||||
return new Area(area);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user