npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

Line of Sight #79

Closed joakimda closed 4 years ago

joakimda commented 6 years ago

Feature request for the option of having line of sight with the current fog of war.

Some kind of line of sight like the following: https://thumbs.gfycat.com/DisastrousGrandAmericanindianhorse-mobile.mp4

Could it possibly be implemented as a boolean in the vision component and then use line tracing for the vision calculation for actors having the boolean set to true? Maybe do it similar to this? but without creating a mesh and only calculating what tiles are blocked and should not be visible.

npruehs commented 6 years ago

Hey @joakimda !

Actually, that's been discussed for quite a while in our team as well, but I'm not sure whether we're going to have the capacity to do this in our game. Consequently, I don't have a timeline for you for this one to find its way into the plugin.

If you can come up with a generic approach that doesn't hit performance too badly, I'd be happy to review it :)

npruehs commented 4 years ago

Added in commit 9e523aeab30ccd6dbbf4302e808b85335a282078.