Hello,
I’m currently working on some aspects of a RTS/Tactical type of game and I was wondering how I could go about developing a 3D Line of sight/Field of vision module for the player’s units as well as the enemy units.
I already checked some 2D approaches (so in the horizontal plane), but I’m having quite a hard time finding information about how one would do it in a 3D environment (so adding a vertical element to the line of sight : for instance be able to check if a unit can see what’s behind a semi-cover or not, given how close it is to the obstacle).
I’m not particularly looking for specific code, but for some ideas/a point where to start (if you have links about this to provide, it is great too).
If needed, I’ll supplement some paint diagrams that explain it better !
Thanks.