Tall Entities from Bounding Box

by WWMods

Marks entities as "tall" for the "toggle visibility of tall entities" feature, based on the ratio of their selection box height to their collision box height. Entities with a selection box ≥50% taller than their collision box (such as trees) are marked as "tall".

Tweaks
a month ago
2.1
13
Owner:
WWMods
Source:
N/A
Homepage:
N/A
License:
GNU LGPLv3
Created:
a month ago
Latest Version:
0.1.2 (a month ago)
Factorio version:
2.1
Downloaded by:
13 users

Marks entities as "tall" for the "toggle visibility of tall entities" feature, based on the ratio of their selection box height to their collision box height.

If you're playing without elevated rails this also unhides the "toggle visibility of tall entities" tool since it's hidden in the base game by default.

Entities with a selection box ≥50% taller than their collision box are marked as "tall", with a few additional heuristics to prevent false positives, such as only considering entities whose selection boxes have significantly higher top extent than that of the collision box (rather than also counting situations where the cause of the selection box being bigger is only the bottom extent being lower), and not considering cliffs.

One benefit of this is that you can work on farming setups easier without the tree hitboxes getting in the way (as shown in the thumbnail).

This is my first mod so maybe this is a terrible way to do it, idk.

You may notice, as I did while testing the mod, that it hides the vast majority of trees but that a few "dry trees" are left unhidden. This should be fine because those trees have a tiny selection box so they don't actually get in the way of you selecting things behind them. Trees which do genuinely get in the way of things should all be hidden by this heuristic.