//spiral2 circle: round down

This commit is contained in:
Starbeamrainbowlabs 2021-10-31 19:48:40 +00:00
parent f5133d287b
commit 33a2ff1ed4
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -71,7 +71,7 @@ function worldeditadditions.spiral_circle(pos1, pos2, target_node, interval_init
if angle > math.pi / 2 then
acceleration_constant = (interval/angle * acceleration) * step
end
radius = 1 + interval*(angle / (math.pi*2))
radius = 1 + math.floor(interval*(angle / (math.pi*2)), 0)
interval = interval_initial + acceleration_constant