Esempio n. 1
0
 void Update()
 {
     _insightVolumes.Clear();
     foreach (var v in Reconner.Find(GetConvexPolyhedron(), FilterSelfIntersection, FilterMask))
     {
         _insightVolumes.Add(v);
     }
     foreach (var v in _insightVolumes)
     {
         InSight.Invoke(v);
     }
 }
Esempio n. 2
0
        void OnDrawGizmos()
        {
            if (!isActiveAndEnabled)
            {
                return;
            }

            ConvUp.AssureUpdateConvex();
            _frustum.DrawGizmos();
            foreach (var v in Reconner.Find(GetConvexPolyhedron(), FilterSelfIntersection, FilterMask))
            {
                DrawInsight(v.GetBounds().Center);
            }
        }