mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
Fix gaps in hollow torus
This commit is contained in:
parent
a5b07ba2ff
commit
841565a75f
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
function worldedit.torus(position, major_radius, minor_radius, target_node, hollow)
|
function worldedit.torus(position, major_radius, minor_radius, target_node, hollow)
|
||||||
-- position = { x, y, z }
|
-- position = { x, y, z }
|
||||||
local total_radius = major_radius + minor_radius
|
local total_radius = major_radius + minor_radius
|
||||||
local inner_minor_radius = minor_radius - 1.75
|
local inner_minor_radius = minor_radius - 2
|
||||||
local major_radius_sq = major_radius*major_radius
|
local major_radius_sq = major_radius*major_radius
|
||||||
local minor_radius_sq = minor_radius*minor_radius
|
local minor_radius_sq = minor_radius*minor_radius
|
||||||
local inner_minor_radius_sq = inner_minor_radius*inner_minor_radius
|
local inner_minor_radius_sq = inner_minor_radius*inner_minor_radius
|
||||||
|
|
Loading…
Reference in a new issue