this is a small but functional plugin that allows you to display the field of view taking into account obstacles and bumps in the terrain
The component is completely made in C ++, which contributes to its speed and reduce the "cost" of rendering.
It can be used both on pure blueprint and as a plug-in for C ++
It takes less than a minute to start using it.
Step 1: Open the actor we need (pawn or character) in the editor
Step 2: Click AddComponent, find "AreaOfVisibility" in the list and add it to our actor.
Step 3: Select the added component and set its properties, Angle NumSect Radius ...
Step 4: Compile the actor, close the character editor window, Add the actor to the level.
The component is ready to use.
NOTE:
when placing an actor with a component at the level, we will see the initial cone (without obstacle envelope), to see the dynamic envelope of obstacles it is necessary to start simulation or PIE mode.
Automatic alignment in the horizontal plane
The code is written in C ++
The grid update occurs only when the character moves