Page 1 of 1

rotation/variations for selection box

Posted: Sun Sep 20, 2026 8:00 am
by y.petremann
I'm making an elevated entity that is above ground and have 4 directions, I want to do things like elevated rails but with a "simple-entity-with-force"

Problem:

selection box rotate are only defined once and rotate with the entity

Code: Select all

selection_box = { { -0.5, -1.5 }, { 0.5, -0.5 } }
image.png
image.png (220.84 KiB) Viewed 34 times
Possible solutions:
  • Allow variation to selection_box:

    Code: Select all

    selection_box = { 
      north={{ -0.5, -1.5 }, { 0.5, -0.5 }},
      east={{ -0.5, -1.5 }, { 0.5, -0.5 }},
      west={{ -0.5, -1.5 }, { 0.5, -0.5 }},
      south={{ -0.5, -1.5 }, { 0.5, -0.5 }},
    }
  • Locking selection box to north:
    rotate_shift :: boolean optional
    Default: true
    Whether to rotate the selection_box alongside entity's rotation.

    Code: Select all

    rotate_selection_box = false
  • Allow the use of selection_box_shift for any entity with variation/rotation like with RailSignals: