Browse Source

Test of raw heightmaps

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
fc602ce9f4
  1. 2
      src/engine/InterestManagement/HeightMap.java

2
src/engine/InterestManagement/HeightMap.java

@ -91,7 +91,7 @@ public class HeightMap { @@ -91,7 +91,7 @@ public class HeightMap {
float calculatedWidthX = this.fullExtentsX / numOfBucketsX;
this.bucketWidthX = calculatedWidthX;
float numOfBucketsY = this.heightmapImage.getWidth() - 1;
float numOfBucketsY = this.heightmapImage.getHeight() - 1;
float calculatedWidthY = this.fullExtentsY / numOfBucketsY;
this.bucketWidthX = calculatedWidthY;

Loading…
Cancel
Save