Exemplo n.º 1
0
        public static bool CanMobSeePoint(
            NavMesh navMesh,
            Mob mob,
            Point3d point)
        {
            bool canSee = false;

            if (IsPointInMobVisionCone(mob, point))
            {
                NavRef mobNavRef  = navMesh.ComputeNavRefAtPoint(mob.Position);
                NavRef propNavRef = navMesh.ComputeNavRefAtPoint(point);

                canSee = navMesh.NavRefCanSeeOtherNavRef(mobNavRef, propNavRef);
            }

            return(canSee);
        }