mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-21 05:54:06 +02:00
//spiral2 circle: round down
This commit is contained in:
parent
f5133d287b
commit
33a2ff1ed4
@ -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 New Issue
Block a user