Quantcast
Channel: Answers for "Creating enemy "field of vision""
Browsing latest articles
Browse All 9 View Live
↧

Answer by Statement

At first I was going to propose to use a frustum to check with, but then I noticed there is no Frustum class and no methods accepting a frustum in Physics methods. I guess you could go with...

View Article


Answer by PrimeDerektive

You want to calculate the direction between the enemy and the player, get the forward vector of the enemy, and then use Vector3.Angle to calculate the angle.Then you can check if the angle is less than...

View Article


Answer by ROLLERROCK

Or you could attach an empty gameobject above your AI's head and name it sight and add this script to your ai's main script var sight : Transform; var CanSee : boolean; var Range = 100.0; var Target :...

View Article
Browsing latest articles
Browse All 9 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>