Curved rail collision box
Posted: Thu Feb 10, 2022 1:11 pm
I would like to be able to modify the collision boxes for the curved rail (or a custom third rail type, actually). Could they be exposed in the data rather than the dummy 4x4 box there now?
EDIT: I think this is a no based on Discord responses and the changelog for 0.17.56 where a bug related to this was fixed.
Code: Select all
{
type = "curved-rail",
name = "curved-rail",
collision_box = {{-2, -2}, {2, 2}}, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
selection_box = {{-1.7, -0.8}, {1.7, 0.8}},
},
-- irrelevant data omitted