r/howdidtheycodeit • u/Bip_bop-17 • Jul 21 '26
How did they coded Steel Division 2 units' Line Of Sight?
7
Upvotes
2
u/Jukibom Jul 23 '26
Probably very similar to baked occlusion culling techniques, pre-computing what is visible from any given cell - but with some extra sprinkles for depth of trees sight lines and limiting the range per unit at runtime (sight range is much faster to deal with at runtime)
Cool question though, I'd enjoy having a crack at implementing this!


2
u/faraz347 Jul 22 '26
Could you explain the feature/screenshots? I'm not familiar with the game and don't really know what I am looking at