Beispiel #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);
     }
 }
Beispiel #2
0
        void OnDrawGizmos()
        {
            if (!isActiveAndEnabled)
            {
                return;
            }

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