keep old averaging behavior for circle bounds

This commit is contained in:
yrsegal@gmail.com 2022-04-27 17:55:10 -04:00
parent 3adab44a91
commit 28e549f403

View file

@ -18,9 +18,9 @@ class OpCircleBounds(val max: Boolean) : ConstManaOperator {
return Operator.spellListOf(
if (max)
Vec3(aabb.maxX - 1, aabb.maxY - 1, aabb.maxZ - 1)
Vec3(aabb.maxX - 0.5, aabb.maxY - 0.5, aabb.maxZ - 0.5)
else
Vec3(aabb.minX, aabb.minY, aabb.minZ)
Vec3(aabb.minX + 0.5, aabb.minY + 0.5, aabb.minZ + 0.5)
)
}
}