Make bushy leaves/needles just visual #1

Closed
rudzik8 wants to merge 6 commits from (deleted):master into master
1 changed files with 2 additions and 7 deletions
Showing only changes of commit 78e6a32873 - Show all commits

View File

@ -34,12 +34,7 @@ local node_box_bushy_leaves = {
local node_box_full_node = {
type = "fixed",
rudzik8 marked this conversation as resolved
Review

Please change 0.5 to 8/16 for consistency with the rest of the code.

Please change 0.5 to 8/16 for consistency with the rest of the code.
fixed = { -8/16, -8/16, -8/16, 8/16, 8/16, 8/16 },
}
local node_box_full_node = {
type = "fixed",
fixed = { -8/16, -8/16, -8/16, 8/16, 8/16, 8/16 },
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 },
}
local get_node_box = function(node_name, node_def)
@ -48,7 +43,7 @@ local get_node_box = function(node_name, node_def)
string.match(node_name, "leaves") or
string.match(node_name, "needles")
) then
node_box = node_box_bushy_leaves
node_box = node_box_bushy_leaves,
collision_box = node_box_full_node
end
return node_box