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
|
||||
|
||||
if (xSpanDepth + ySpanDepth > xSpanSize + ySpanSize) {
|
||||
if (xSpanDepth * ySpanDepth > xSpanSize * ySpanSize) {
|
||||
depthFirst.markSeen()
|
||||
aabb = AABB(depthFirst.mins.toDoubleVector(), depthFirst.maxs.toDoubleVector() + Vector2d.POSITIVE_XY)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user