improve octagon glass pane slope / refactor node- and selectionbox code

This commit is contained in:
BuckarooBanzay
2025-01-04 19:50:33 +01:00
parent 36b0c5cc05
commit 62037ad60a
5 changed files with 61 additions and 35 deletions

View File

@ -19,7 +19,7 @@ function scifi_nodes.get_switch_rules(param2)
return rules
end
scifi_nodes.slope_selection_box = {
scifi_nodes.slope_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
@ -29,12 +29,12 @@ scifi_nodes.slope_selection_box = {
}
}
scifi_nodes.slope_collision_box = {
scifi_nodes.slope_box_simple = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
{-0.5, 0, 0, 0.5, 0.25, 0.5},
{-0.5, -0.5, -0.5, 0.5, -0.25, -0.25},
{-0.5, -0.25, -0.25, 0.5, 0, 0},
{-0.5, 0, 0, 0.5, 0.25, 0.25},
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
}
}