Security Cameras in Unity

Simple cameras to detect the player.

The camera in action

Yesterday we gave our guards the ability to see the player using a box collider. Today we will setup some security cameras that will detect the player and trigger the same game over scenario.

The cameras are a little more complex than the guards. Guards see directly in front of them, while the cameras need to rotate and have a cone shaped line of sight.

--

--

--

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Whitelist winners announced! Emails sent.

Scala 3.0: What’s New?

Scala 3.0: What's New?

Sprint Review — Some Myths & Tips

Lean Simplified — Part 1

Non Uniform Memory Access (NUMA)

How do you write code that is extensible and maintainable when you don’t know what new features…

Intersection of Two Arrays II

Convert a Swift Delegate to RxSwift Observables

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
James West

James West

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.

More from Medium

Coroutines in Unity

Making a 2.5D Character Controller in Unity Part 2

Lighting your scene in Unity using the URP

Cross platform input controller | Unity