Measure surface rather than perimeter
This commit is contained in:
parent
4474026fd4
commit
05e21deb57
@ -806,7 +806,7 @@ abstract class Chunk<WorldType : World<WorldType, This>, This : Chunk<WorldType,
|
|||||||
|
|
||||||
val aabb: AABB
|
val aabb: AABB
|
||||||
|
|
||||||
if (xSpanDepth + ySpanDepth > xSpanSize + ySpanSize) {
|
if (xSpanDepth * ySpanDepth > xSpanSize * ySpanSize) {
|
||||||
depthFirst.markSeen()
|
depthFirst.markSeen()
|
||||||
aabb = AABB(depthFirst.mins.toDoubleVector(), depthFirst.maxs.toDoubleVector() + Vector2d.POSITIVE_XY)
|
aabb = AABB(depthFirst.mins.toDoubleVector(), depthFirst.maxs.toDoubleVector() + Vector2d.POSITIVE_XY)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user