void Update() { _insightVolumes.Clear(); foreach (var v in Reconner.Find(GetConvexPolyhedron(), FilterSelfIntersection, FilterMask)) { _insightVolumes.Add(v); } foreach (var v in _insightVolumes) { InSight.Invoke(v); } }
void OnDrawGizmos() { if (!isActiveAndEnabled) { return; } ConvUp.AssureUpdateConvex(); _frustum.DrawGizmos(); foreach (var v in Reconner.Find(GetConvexPolyhedron(), FilterSelfIntersection, FilterMask)) { DrawInsight(v.GetBounds().Center); } }