Fix gapple bugs and unload far chunks
This commit is contained in:
@@ -25,6 +25,10 @@ def phyp_bias(p1, p2, origin):
|
||||
height_diff = height_diff*8 if height_diff < 0 else height_diff*0.5
|
||||
return hypot(p1[0] - p2[0], height_diff, p1[2] - p2[2]) + origin_distance*0.5
|
||||
|
||||
def phyp_king(p1, p2):
|
||||
# calculates the Chebyshev distance
|
||||
return max(abs(p1[0] - p2[0]), abs(p1[1] - p2[1]), abs(p1[2] - p2[2]))
|
||||
|
||||
def pint(p):
|
||||
return (floor(p[0]), floor(p[1]), floor(p[2]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user