↧
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 ArticleAnswer 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 ArticleAnswer 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