Back

Unity Vision Cones

Technologies

During my time at Alterego Games; I've created many tools for different game projects. One of these tools was a Vision Cone tool which was desired by the game design team during the Sanity of Morris project. There we had enemies which needed to know weather certain objects (such as the player) could be seen or not.

I ended up building the feature out of the ashes of another, which didn't see the light of day eventually. That approach used trigonometry to determine if an object is inside the vision code. By using the vector from the origin of the vision code; to the target trigger. These triggers keep track from which vision codes they are visible.