mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
//spiral2 circle: round down
This commit is contained in:
parent
f5133d287b
commit
33a2ff1ed4
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ function worldeditadditions.spiral_circle(pos1, pos2, target_node, interval_init
|
||||||
if angle > math.pi / 2 then
|
if angle > math.pi / 2 then
|
||||||
acceleration_constant = (interval/angle * acceleration) * step
|
acceleration_constant = (interval/angle * acceleration) * step
|
||||||
end
|
end
|
||||||
radius = 1 + interval*(angle / (math.pi*2))
|
radius = 1 + math.floor(interval*(angle / (math.pi*2)), 0)
|
||||||
interval = interval_initial + acceleration_constant
|
interval = interval_initial + acceleration_constant
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue