CCTV Implementation

As stated in my project proposal I have worked on implementing CCTV into the scene.


 The cameras have a trigger attached that works like a frustum, once the player is within this trigger, the camera notifies the global blackboard that the player has been spotted, the global blackboard then alerts the guards of the player's last known location and sets them into the alerted state.


The camera is able to check if the player is in view of the camera by sending out a raycast and returning the item that has been hit.  This is similar to the line of sight (LoS) method that the guards use.  This stops the camera from spotting players through walls.  The cameras perform a sweeping animation as shown in the video below.

I have also created a user interface (UI) that prints out the guards states, this helps the user see what the guards are up to and shows the transition between states when reacting to the player.